/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace WorkMail { namespace Model { /** */ class CreateOrganizationRequest : public WorkMailRequest { public: AWS_WORKMAIL_API CreateOrganizationRequest(); // 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 "CreateOrganization"; } AWS_WORKMAIL_API Aws::String SerializePayload() const override; AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The AWS Directory Service directory ID.

*/ inline const Aws::String& GetDirectoryId() const{ return m_directoryId; } /** *

The AWS Directory Service directory ID.

*/ inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; } /** *

The AWS Directory Service directory ID.

*/ inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; } /** *

The AWS Directory Service directory ID.

*/ inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); } /** *

The AWS Directory Service directory ID.

*/ inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); } /** *

The AWS Directory Service directory ID.

*/ inline CreateOrganizationRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;} /** *

The AWS Directory Service directory ID.

*/ inline CreateOrganizationRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;} /** *

The AWS Directory Service directory ID.

*/ inline CreateOrganizationRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;} /** *

The organization alias.

*/ inline const Aws::String& GetAlias() const{ return m_alias; } /** *

The organization alias.

*/ inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; } /** *

The organization alias.

*/ inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; } /** *

The organization alias.

*/ inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); } /** *

The organization alias.

*/ inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); } /** *

The organization alias.

*/ inline CreateOrganizationRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;} /** *

The organization alias.

*/ inline CreateOrganizationRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;} /** *

The organization alias.

*/ inline CreateOrganizationRequest& WithAlias(const char* value) { SetAlias(value); return *this;} /** *

The idempotency token associated with the request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The idempotency token associated with the request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

The idempotency token associated with the request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

The idempotency token associated with the request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

The idempotency token associated with the request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

The idempotency token associated with the request.

*/ inline CreateOrganizationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The idempotency token associated with the request.

*/ inline CreateOrganizationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The idempotency token associated with the request.

*/ inline CreateOrganizationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The email domains to associate with the organization.

*/ inline const Aws::Vector& GetDomains() const{ return m_domains; } /** *

The email domains to associate with the organization.

*/ inline bool DomainsHasBeenSet() const { return m_domainsHasBeenSet; } /** *

The email domains to associate with the organization.

*/ inline void SetDomains(const Aws::Vector& value) { m_domainsHasBeenSet = true; m_domains = value; } /** *

The email domains to associate with the organization.

*/ inline void SetDomains(Aws::Vector&& value) { m_domainsHasBeenSet = true; m_domains = std::move(value); } /** *

The email domains to associate with the organization.

*/ inline CreateOrganizationRequest& WithDomains(const Aws::Vector& value) { SetDomains(value); return *this;} /** *

The email domains to associate with the organization.

*/ inline CreateOrganizationRequest& WithDomains(Aws::Vector&& value) { SetDomains(std::move(value)); return *this;} /** *

The email domains to associate with the organization.

*/ inline CreateOrganizationRequest& AddDomains(const Domain& value) { m_domainsHasBeenSet = true; m_domains.push_back(value); return *this; } /** *

The email domains to associate with the organization.

*/ inline CreateOrganizationRequest& AddDomains(Domain&& value) { m_domainsHasBeenSet = true; m_domains.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Name (ARN) of a customer managed key from AWS KMS.

*/ inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; } /** *

The Amazon Resource Name (ARN) of a customer managed key from AWS KMS.

*/ inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of a customer managed key from AWS KMS.

*/ inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; } /** *

The Amazon Resource Name (ARN) of a customer managed key from AWS KMS.

*/ inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of a customer managed key from AWS KMS.

*/ inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); } /** *

The Amazon Resource Name (ARN) of a customer managed key from AWS KMS.

*/ inline CreateOrganizationRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of a customer managed key from AWS KMS.

*/ inline CreateOrganizationRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of a customer managed key from AWS KMS.

*/ inline CreateOrganizationRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;} /** *

When true, allows organization interoperability between WorkMail * and Microsoft Exchange. If true, you must include a AD Connector * directory ID in the request.

*/ inline bool GetEnableInteroperability() const{ return m_enableInteroperability; } /** *

When true, allows organization interoperability between WorkMail * and Microsoft Exchange. If true, you must include a AD Connector * directory ID in the request.

*/ inline bool EnableInteroperabilityHasBeenSet() const { return m_enableInteroperabilityHasBeenSet; } /** *

When true, allows organization interoperability between WorkMail * and Microsoft Exchange. If true, you must include a AD Connector * directory ID in the request.

*/ inline void SetEnableInteroperability(bool value) { m_enableInteroperabilityHasBeenSet = true; m_enableInteroperability = value; } /** *

When true, allows organization interoperability between WorkMail * and Microsoft Exchange. If true, you must include a AD Connector * directory ID in the request.

*/ inline CreateOrganizationRequest& WithEnableInteroperability(bool value) { SetEnableInteroperability(value); return *this;} private: Aws::String m_directoryId; bool m_directoryIdHasBeenSet = false; Aws::String m_alias; bool m_aliasHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Vector m_domains; bool m_domainsHasBeenSet = false; Aws::String m_kmsKeyArn; bool m_kmsKeyArnHasBeenSet = false; bool m_enableInteroperability; bool m_enableInteroperabilityHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws