/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/core/utils/UUID.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workmail/WorkMailRequest.h>
#include <aws/workmail/WorkMail_EXPORTS.h>

#include <utility>

namespace Aws {
namespace WorkMail {
namespace Model {

/**
 */
class DeleteOrganizationRequest : public WorkMailRequest {
 public:
  AWS_WORKMAIL_API DeleteOrganizationRequest() = default;

  // Service request name is the Operation name which will send this request out,
  // each operation should has unique request name, so that we can get operation's name from this request.
  // Note: this is not true for response, multiple operations may have the same response name,
  // so we can not get operation's name from response.
  inline virtual const char* GetServiceRequestName() const override { return "DeleteOrganization"; }

  AWS_WORKMAIL_API Aws::String SerializePayload() const override;

  AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;

  ///@{
  /**
   * <p>The idempotency token associated with the request.</p>
   */
  inline const Aws::String& GetClientToken() const { return m_clientToken; }
  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
  template <typename ClientTokenT = Aws::String>
  void SetClientToken(ClientTokenT&& value) {
    m_clientTokenHasBeenSet = true;
    m_clientToken = std::forward<ClientTokenT>(value);
  }
  template <typename ClientTokenT = Aws::String>
  DeleteOrganizationRequest& WithClientToken(ClientTokenT&& value) {
    SetClientToken(std::forward<ClientTokenT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The organization ID.</p>
   */
  inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
  inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
  template <typename OrganizationIdT = Aws::String>
  void SetOrganizationId(OrganizationIdT&& value) {
    m_organizationIdHasBeenSet = true;
    m_organizationId = std::forward<OrganizationIdT>(value);
  }
  template <typename OrganizationIdT = Aws::String>
  DeleteOrganizationRequest& WithOrganizationId(OrganizationIdT&& value) {
    SetOrganizationId(std::forward<OrganizationIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>If true, deletes the AWS Directory Service directory associated with the
   * organization.</p>
   */
  inline bool GetDeleteDirectory() const { return m_deleteDirectory; }
  inline bool DeleteDirectoryHasBeenSet() const { return m_deleteDirectoryHasBeenSet; }
  inline void SetDeleteDirectory(bool value) {
    m_deleteDirectoryHasBeenSet = true;
    m_deleteDirectory = value;
  }
  inline DeleteOrganizationRequest& WithDeleteDirectory(bool value) {
    SetDeleteDirectory(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Deletes a WorkMail organization even if the organization has enabled
   * users.</p>
   */
  inline bool GetForceDelete() const { return m_forceDelete; }
  inline bool ForceDeleteHasBeenSet() const { return m_forceDeleteHasBeenSet; }
  inline void SetForceDelete(bool value) {
    m_forceDeleteHasBeenSet = true;
    m_forceDelete = value;
  }
  inline DeleteOrganizationRequest& WithForceDelete(bool value) {
    SetForceDelete(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Deletes IAM Identity Center application for WorkMail. This action does not
   * affect authentication settings for any organization.</p>
   */
  inline bool GetDeleteIdentityCenterApplication() const { return m_deleteIdentityCenterApplication; }
  inline bool DeleteIdentityCenterApplicationHasBeenSet() const { return m_deleteIdentityCenterApplicationHasBeenSet; }
  inline void SetDeleteIdentityCenterApplication(bool value) {
    m_deleteIdentityCenterApplicationHasBeenSet = true;
    m_deleteIdentityCenterApplication = value;
  }
  inline DeleteOrganizationRequest& WithDeleteIdentityCenterApplication(bool value) {
    SetDeleteIdentityCenterApplication(value);
    return *this;
  }
  ///@}
 private:
  Aws::String m_clientToken{Aws::Utils::UUID::PseudoRandomUUID()};

  Aws::String m_organizationId;

  bool m_deleteDirectory{false};

  bool m_forceDelete{false};

  bool m_deleteIdentityCenterApplication{false};
  bool m_clientTokenHasBeenSet = true;
  bool m_organizationIdHasBeenSet = false;
  bool m_deleteDirectoryHasBeenSet = false;
  bool m_forceDeleteHasBeenSet = false;
  bool m_deleteIdentityCenterApplicationHasBeenSet = false;
};

}  // namespace Model
}  // namespace WorkMail
}  // namespace Aws
