/** * 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 #include namespace Aws { namespace VoiceID { namespace Model { /** */ class CreateDomainRequest : public VoiceIDRequest { public: AWS_VOICEID_API CreateDomainRequest(); // 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 "CreateDomain"; } AWS_VOICEID_API Aws::String SerializePayload() const override; AWS_VOICEID_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

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

A brief description of this domain.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A brief description of this domain.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A brief description of this domain.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A brief description of this domain.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A brief description of this domain.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A brief description of this domain.

*/ inline CreateDomainRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A brief description of this domain.

*/ inline CreateDomainRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A brief description of this domain.

*/ inline CreateDomainRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The name of the domain.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the domain.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the domain.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the domain.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the domain.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the domain.

*/ inline CreateDomainRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the domain.

*/ inline CreateDomainRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the domain.

*/ inline CreateDomainRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The configuration, containing the KMS key identifier, to be used by Voice ID * for the server-side encryption of your data. Refer to * Amazon Connect Voice ID encryption at rest for more details on how the KMS * key is used.

*/ inline const ServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const{ return m_serverSideEncryptionConfiguration; } /** *

The configuration, containing the KMS key identifier, to be used by Voice ID * for the server-side encryption of your data. Refer to * Amazon Connect Voice ID encryption at rest for more details on how the KMS * key is used.

*/ inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; } /** *

The configuration, containing the KMS key identifier, to be used by Voice ID * for the server-side encryption of your data. Refer to * Amazon Connect Voice ID encryption at rest for more details on how the KMS * key is used.

*/ inline void SetServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = value; } /** *

The configuration, containing the KMS key identifier, to be used by Voice ID * for the server-side encryption of your data. Refer to * Amazon Connect Voice ID encryption at rest for more details on how the KMS * key is used.

*/ inline void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::move(value); } /** *

The configuration, containing the KMS key identifier, to be used by Voice ID * for the server-side encryption of your data. Refer to * Amazon Connect Voice ID encryption at rest for more details on how the KMS * key is used.

*/ inline CreateDomainRequest& WithServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration& value) { SetServerSideEncryptionConfiguration(value); return *this;} /** *

The configuration, containing the KMS key identifier, to be used by Voice ID * for the server-side encryption of your data. Refer to * Amazon Connect Voice ID encryption at rest for more details on how the KMS * key is used.

*/ inline CreateDomainRequest& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration&& value) { SetServerSideEncryptionConfiguration(std::move(value)); return *this;} /** *

A list of tags you want added to the domain.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of tags you want added to the domain.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of tags you want added to the domain.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of tags you want added to the domain.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of tags you want added to the domain.

*/ inline CreateDomainRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of tags you want added to the domain.

*/ inline CreateDomainRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of tags you want added to the domain.

*/ inline CreateDomainRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of tags you want added to the domain.

*/ inline CreateDomainRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration; bool m_serverSideEncryptionConfigurationHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace VoiceID } // namespace Aws