/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace CodeArtifact { namespace Model { /** */ class CreateDomainRequest : public CodeArtifactRequest { public: AWS_CODEARTIFACT_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_CODEARTIFACT_API Aws::String SerializePayload() const override; AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The name of the domain to create. All domain names in an Amazon Web Services * Region that are in the same Amazon Web Services account must be unique. The * domain name is used as the prefix in DNS hostnames. Do not use sensitive * information in a domain name because it is publicly discoverable.

*/ inline const Aws::String& GetDomain() const{ return m_domain; } /** *

The name of the domain to create. All domain names in an Amazon Web Services * Region that are in the same Amazon Web Services account must be unique. The * domain name is used as the prefix in DNS hostnames. Do not use sensitive * information in a domain name because it is publicly discoverable.

*/ inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; } /** *

The name of the domain to create. All domain names in an Amazon Web Services * Region that are in the same Amazon Web Services account must be unique. The * domain name is used as the prefix in DNS hostnames. Do not use sensitive * information in a domain name because it is publicly discoverable.

*/ inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; } /** *

The name of the domain to create. All domain names in an Amazon Web Services * Region that are in the same Amazon Web Services account must be unique. The * domain name is used as the prefix in DNS hostnames. Do not use sensitive * information in a domain name because it is publicly discoverable.

*/ inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); } /** *

The name of the domain to create. All domain names in an Amazon Web Services * Region that are in the same Amazon Web Services account must be unique. The * domain name is used as the prefix in DNS hostnames. Do not use sensitive * information in a domain name because it is publicly discoverable.

*/ inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); } /** *

The name of the domain to create. All domain names in an Amazon Web Services * Region that are in the same Amazon Web Services account must be unique. The * domain name is used as the prefix in DNS hostnames. Do not use sensitive * information in a domain name because it is publicly discoverable.

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

The name of the domain to create. All domain names in an Amazon Web Services * Region that are in the same Amazon Web Services account must be unique. The * domain name is used as the prefix in DNS hostnames. Do not use sensitive * information in a domain name because it is publicly discoverable.

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

The name of the domain to create. All domain names in an Amazon Web Services * Region that are in the same Amazon Web Services account must be unique. The * domain name is used as the prefix in DNS hostnames. Do not use sensitive * information in a domain name because it is publicly discoverable.

*/ inline CreateDomainRequest& WithDomain(const char* value) { SetDomain(value); return *this;} /** *

The encryption key for the domain. This is used to encrypt content stored in * a domain. An encryption key can be a key ID, a key Amazon Resource Name (ARN), a * key alias, or a key alias ARN. To specify an encryptionKey, your * IAM role must have kms:DescribeKey and kms:CreateGrant * permissions on the encryption key that is used. For more information, see DescribeKey * in the Key Management Service API Reference and Key * Management Service API Permissions Reference in the Key Management * Service Developer Guide.

CodeArtifact supports only * symmetric CMKs. Do not associate an asymmetric CMK with your domain. For more * information, see Using * symmetric and asymmetric keys in the Key Management Service Developer * Guide.

*/ inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; } /** *

The encryption key for the domain. This is used to encrypt content stored in * a domain. An encryption key can be a key ID, a key Amazon Resource Name (ARN), a * key alias, or a key alias ARN. To specify an encryptionKey, your * IAM role must have kms:DescribeKey and kms:CreateGrant * permissions on the encryption key that is used. For more information, see DescribeKey * in the Key Management Service API Reference and Key * Management Service API Permissions Reference in the Key Management * Service Developer Guide.

CodeArtifact supports only * symmetric CMKs. Do not associate an asymmetric CMK with your domain. For more * information, see Using * symmetric and asymmetric keys in the Key Management Service Developer * Guide.

*/ inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; } /** *

The encryption key for the domain. This is used to encrypt content stored in * a domain. An encryption key can be a key ID, a key Amazon Resource Name (ARN), a * key alias, or a key alias ARN. To specify an encryptionKey, your * IAM role must have kms:DescribeKey and kms:CreateGrant * permissions on the encryption key that is used. For more information, see DescribeKey * in the Key Management Service API Reference and Key * Management Service API Permissions Reference in the Key Management * Service Developer Guide.

CodeArtifact supports only * symmetric CMKs. Do not associate an asymmetric CMK with your domain. For more * information, see Using * symmetric and asymmetric keys in the Key Management Service Developer * Guide.

*/ inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; } /** *

The encryption key for the domain. This is used to encrypt content stored in * a domain. An encryption key can be a key ID, a key Amazon Resource Name (ARN), a * key alias, or a key alias ARN. To specify an encryptionKey, your * IAM role must have kms:DescribeKey and kms:CreateGrant * permissions on the encryption key that is used. For more information, see DescribeKey * in the Key Management Service API Reference and Key * Management Service API Permissions Reference in the Key Management * Service Developer Guide.

CodeArtifact supports only * symmetric CMKs. Do not associate an asymmetric CMK with your domain. For more * information, see Using * symmetric and asymmetric keys in the Key Management Service Developer * Guide.

*/ inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); } /** *

The encryption key for the domain. This is used to encrypt content stored in * a domain. An encryption key can be a key ID, a key Amazon Resource Name (ARN), a * key alias, or a key alias ARN. To specify an encryptionKey, your * IAM role must have kms:DescribeKey and kms:CreateGrant * permissions on the encryption key that is used. For more information, see DescribeKey * in the Key Management Service API Reference and Key * Management Service API Permissions Reference in the Key Management * Service Developer Guide.

CodeArtifact supports only * symmetric CMKs. Do not associate an asymmetric CMK with your domain. For more * information, see Using * symmetric and asymmetric keys in the Key Management Service Developer * Guide.

*/ inline void SetEncryptionKey(const char* value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey.assign(value); } /** *

The encryption key for the domain. This is used to encrypt content stored in * a domain. An encryption key can be a key ID, a key Amazon Resource Name (ARN), a * key alias, or a key alias ARN. To specify an encryptionKey, your * IAM role must have kms:DescribeKey and kms:CreateGrant * permissions on the encryption key that is used. For more information, see DescribeKey * in the Key Management Service API Reference and Key * Management Service API Permissions Reference in the Key Management * Service Developer Guide.

CodeArtifact supports only * symmetric CMKs. Do not associate an asymmetric CMK with your domain. For more * information, see Using * symmetric and asymmetric keys in the Key Management Service Developer * Guide.

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

The encryption key for the domain. This is used to encrypt content stored in * a domain. An encryption key can be a key ID, a key Amazon Resource Name (ARN), a * key alias, or a key alias ARN. To specify an encryptionKey, your * IAM role must have kms:DescribeKey and kms:CreateGrant * permissions on the encryption key that is used. For more information, see DescribeKey * in the Key Management Service API Reference and Key * Management Service API Permissions Reference in the Key Management * Service Developer Guide.

CodeArtifact supports only * symmetric CMKs. Do not associate an asymmetric CMK with your domain. For more * information, see Using * symmetric and asymmetric keys in the Key Management Service Developer * Guide.

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

The encryption key for the domain. This is used to encrypt content stored in * a domain. An encryption key can be a key ID, a key Amazon Resource Name (ARN), a * key alias, or a key alias ARN. To specify an encryptionKey, your * IAM role must have kms:DescribeKey and kms:CreateGrant * permissions on the encryption key that is used. For more information, see DescribeKey * in the Key Management Service API Reference and Key * Management Service API Permissions Reference in the Key Management * Service Developer Guide.

CodeArtifact supports only * symmetric CMKs. Do not associate an asymmetric CMK with your domain. For more * information, see Using * symmetric and asymmetric keys in the Key Management Service Developer * Guide.

*/ inline CreateDomainRequest& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;} /** *

One or more tag key-value pairs for the domain.

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

One or more tag key-value pairs for the domain.

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

One or more tag key-value pairs for the domain.

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

One or more tag key-value pairs for the domain.

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

One or more tag key-value pairs for the domain.

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

One or more tag key-value pairs for the domain.

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

One or more tag key-value pairs for the domain.

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

One or more tag key-value pairs for the domain.

*/ inline CreateDomainRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_domain; bool m_domainHasBeenSet = false; Aws::String m_encryptionKey; bool m_encryptionKeyHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws