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

The name of the domain to create. All domain names in an AWS Region that are * in the same AWS 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 AWS Region that are * in the same AWS 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 AWS Region that are * in the same AWS 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 AWS Region that are * in the same AWS 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 AWS Region that are * in the same AWS 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 AWS Region that are * in the same AWS 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 AWS Region that are * in the same AWS 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 AWS Region that are * in the same AWS 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 AWS Key Management Service API Reference and AWS * KMS API Permissions Reference in the AWS 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 AWS 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 AWS Key Management Service API Reference and AWS * KMS API Permissions Reference in the AWS 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 AWS 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 AWS Key Management Service API Reference and AWS * KMS API Permissions Reference in the AWS 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 AWS 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 AWS Key Management Service API Reference and AWS * KMS API Permissions Reference in the AWS 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 AWS 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 AWS Key Management Service API Reference and AWS * KMS API Permissions Reference in the AWS 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 AWS 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 AWS Key Management Service API Reference and AWS * KMS API Permissions Reference in the AWS 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 AWS 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 AWS Key Management Service API Reference and AWS * KMS API Permissions Reference in the AWS 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 AWS 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 AWS Key Management Service API Reference and AWS * KMS API Permissions Reference in the AWS 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 AWS Key Management Service Developer * Guide.

*/ inline CreateDomainRequest& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;} private: Aws::String m_domain; bool m_domainHasBeenSet; Aws::String m_encryptionKey; bool m_encryptionKeyHasBeenSet; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws