/** * 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 ServiceDiscovery { namespace Model { /** */ class CreatePublicDnsNamespaceRequest : public ServiceDiscoveryRequest { public: AWS_SERVICEDISCOVERY_API CreatePublicDnsNamespaceRequest(); // 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 "CreatePublicDnsNamespace"; } AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override; AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name that you want to assign to this namespace.

Do not * include sensitive information in the name. The name is publicly available using * DNS queries.

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

The name that you want to assign to this namespace.

Do not * include sensitive information in the name. The name is publicly available using * DNS queries.

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

The name that you want to assign to this namespace.

Do not * include sensitive information in the name. The name is publicly available using * DNS queries.

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

The name that you want to assign to this namespace.

Do not * include sensitive information in the name. The name is publicly available using * DNS queries.

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

The name that you want to assign to this namespace.

Do not * include sensitive information in the name. The name is publicly available using * DNS queries.

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

The name that you want to assign to this namespace.

Do not * include sensitive information in the name. The name is publicly available using * DNS queries.

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

The name that you want to assign to this namespace.

Do not * include sensitive information in the name. The name is publicly available using * DNS queries.

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

The name that you want to assign to this namespace.

Do not * include sensitive information in the name. The name is publicly available using * DNS queries.

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

A unique string that identifies the request and that allows failed * CreatePublicDnsNamespace requests to be retried without the risk of * running the operation twice. CreatorRequestId can be any unique * string (for example, a date/timestamp).

*/ inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; } /** *

A unique string that identifies the request and that allows failed * CreatePublicDnsNamespace requests to be retried without the risk of * running the operation twice. CreatorRequestId can be any unique * string (for example, a date/timestamp).

*/ inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; } /** *

A unique string that identifies the request and that allows failed * CreatePublicDnsNamespace requests to be retried without the risk of * running the operation twice. CreatorRequestId can be any unique * string (for example, a date/timestamp).

*/ inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; } /** *

A unique string that identifies the request and that allows failed * CreatePublicDnsNamespace requests to be retried without the risk of * running the operation twice. CreatorRequestId can be any unique * string (for example, a date/timestamp).

*/ inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); } /** *

A unique string that identifies the request and that allows failed * CreatePublicDnsNamespace requests to be retried without the risk of * running the operation twice. CreatorRequestId can be any unique * string (for example, a date/timestamp).

*/ inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); } /** *

A unique string that identifies the request and that allows failed * CreatePublicDnsNamespace requests to be retried without the risk of * running the operation twice. CreatorRequestId can be any unique * string (for example, a date/timestamp).

*/ inline CreatePublicDnsNamespaceRequest& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;} /** *

A unique string that identifies the request and that allows failed * CreatePublicDnsNamespace requests to be retried without the risk of * running the operation twice. CreatorRequestId can be any unique * string (for example, a date/timestamp).

*/ inline CreatePublicDnsNamespaceRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;} /** *

A unique string that identifies the request and that allows failed * CreatePublicDnsNamespace requests to be retried without the risk of * running the operation twice. CreatorRequestId can be any unique * string (for example, a date/timestamp).

*/ inline CreatePublicDnsNamespaceRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;} /** *

A description for the namespace.

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

A description for the namespace.

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

A description for the namespace.

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

A description for the namespace.

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

A description for the namespace.

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

A description for the namespace.

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

A description for the namespace.

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

A description for the namespace.

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

The tags to add to the namespace. Each tag consists of a key and an optional * value that you define. Tags keys can be up to 128 characters in length, and tag * values can be up to 256 characters in length.

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

The tags to add to the namespace. Each tag consists of a key and an optional * value that you define. Tags keys can be up to 128 characters in length, and tag * values can be up to 256 characters in length.

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

The tags to add to the namespace. Each tag consists of a key and an optional * value that you define. Tags keys can be up to 128 characters in length, and tag * values can be up to 256 characters in length.

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

The tags to add to the namespace. Each tag consists of a key and an optional * value that you define. Tags keys can be up to 128 characters in length, and tag * values can be up to 256 characters in length.

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

The tags to add to the namespace. Each tag consists of a key and an optional * value that you define. Tags keys can be up to 128 characters in length, and tag * values can be up to 256 characters in length.

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

The tags to add to the namespace. Each tag consists of a key and an optional * value that you define. Tags keys can be up to 128 characters in length, and tag * values can be up to 256 characters in length.

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

The tags to add to the namespace. Each tag consists of a key and an optional * value that you define. Tags keys can be up to 128 characters in length, and tag * values can be up to 256 characters in length.

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

The tags to add to the namespace. Each tag consists of a key and an optional * value that you define. Tags keys can be up to 128 characters in length, and tag * values can be up to 256 characters in length.

*/ inline CreatePublicDnsNamespaceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

Properties for the public DNS namespace.

*/ inline const PublicDnsNamespaceProperties& GetProperties() const{ return m_properties; } /** *

Properties for the public DNS namespace.

*/ inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; } /** *

Properties for the public DNS namespace.

*/ inline void SetProperties(const PublicDnsNamespaceProperties& value) { m_propertiesHasBeenSet = true; m_properties = value; } /** *

Properties for the public DNS namespace.

*/ inline void SetProperties(PublicDnsNamespaceProperties&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); } /** *

Properties for the public DNS namespace.

*/ inline CreatePublicDnsNamespaceRequest& WithProperties(const PublicDnsNamespaceProperties& value) { SetProperties(value); return *this;} /** *

Properties for the public DNS namespace.

*/ inline CreatePublicDnsNamespaceRequest& WithProperties(PublicDnsNamespaceProperties&& value) { SetProperties(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_creatorRequestId; bool m_creatorRequestIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; PublicDnsNamespaceProperties m_properties; bool m_propertiesHasBeenSet = false; }; } // namespace Model } // namespace ServiceDiscovery } // namespace Aws