/** * 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 CreatePrivateDnsNamespaceRequest : public ServiceDiscoveryRequest { public: AWS_SERVICEDISCOVERY_API CreatePrivateDnsNamespaceRequest(); // 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 "CreatePrivateDnsNamespace"; } 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. When you create a private * DNS namespace, Cloud Map automatically creates an Amazon Route 53 private hosted * zone that has the same name as the namespace.

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

The name that you want to assign to this namespace. When you create a private * DNS namespace, Cloud Map automatically creates an Amazon Route 53 private hosted * zone that has the same name as the namespace.

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

The name that you want to assign to this namespace. When you create a private * DNS namespace, Cloud Map automatically creates an Amazon Route 53 private hosted * zone that has the same name as the namespace.

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

The name that you want to assign to this namespace. When you create a private * DNS namespace, Cloud Map automatically creates an Amazon Route 53 private hosted * zone that has the same name as the namespace.

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

The name that you want to assign to this namespace. When you create a private * DNS namespace, Cloud Map automatically creates an Amazon Route 53 private hosted * zone that has the same name as the namespace.

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

The name that you want to assign to this namespace. When you create a private * DNS namespace, Cloud Map automatically creates an Amazon Route 53 private hosted * zone that has the same name as the namespace.

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

The name that you want to assign to this namespace. When you create a private * DNS namespace, Cloud Map automatically creates an Amazon Route 53 private hosted * zone that has the same name as the namespace.

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

The name that you want to assign to this namespace. When you create a private * DNS namespace, Cloud Map automatically creates an Amazon Route 53 private hosted * zone that has the same name as the namespace.

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

A unique string that identifies the request and that allows failed * CreatePrivateDnsNamespace 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 * CreatePrivateDnsNamespace 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 * CreatePrivateDnsNamespace 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 * CreatePrivateDnsNamespace 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 * CreatePrivateDnsNamespace 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 * CreatePrivateDnsNamespace requests to be retried without the risk * of running the operation twice. CreatorRequestId can be any unique * string (for example, a date/timestamp).

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

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

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

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

*/ inline CreatePrivateDnsNamespaceRequest& 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 CreatePrivateDnsNamespaceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for the namespace.

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

A description for the namespace.

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

The ID of the Amazon VPC that you want to associate the namespace with.

*/ inline const Aws::String& GetVpc() const{ return m_vpc; } /** *

The ID of the Amazon VPC that you want to associate the namespace with.

*/ inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; } /** *

The ID of the Amazon VPC that you want to associate the namespace with.

*/ inline void SetVpc(const Aws::String& value) { m_vpcHasBeenSet = true; m_vpc = value; } /** *

The ID of the Amazon VPC that you want to associate the namespace with.

*/ inline void SetVpc(Aws::String&& value) { m_vpcHasBeenSet = true; m_vpc = std::move(value); } /** *

The ID of the Amazon VPC that you want to associate the namespace with.

*/ inline void SetVpc(const char* value) { m_vpcHasBeenSet = true; m_vpc.assign(value); } /** *

The ID of the Amazon VPC that you want to associate the namespace with.

*/ inline CreatePrivateDnsNamespaceRequest& WithVpc(const Aws::String& value) { SetVpc(value); return *this;} /** *

The ID of the Amazon VPC that you want to associate the namespace with.

*/ inline CreatePrivateDnsNamespaceRequest& WithVpc(Aws::String&& value) { SetVpc(std::move(value)); return *this;} /** *

The ID of the Amazon VPC that you want to associate the namespace with.

*/ inline CreatePrivateDnsNamespaceRequest& WithVpc(const char* value) { SetVpc(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 CreatePrivateDnsNamespaceRequest& 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 CreatePrivateDnsNamespaceRequest& 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 CreatePrivateDnsNamespaceRequest& 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 CreatePrivateDnsNamespaceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

Properties for the private DNS namespace.

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

Properties for the private DNS namespace.

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

Properties for the private DNS namespace.

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

Properties for the private DNS namespace.

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

Properties for the private DNS namespace.

*/ inline CreatePrivateDnsNamespaceRequest& WithProperties(const PrivateDnsNamespaceProperties& value) { SetProperties(value); return *this;} /** *

Properties for the private DNS namespace.

*/ inline CreatePrivateDnsNamespaceRequest& WithProperties(PrivateDnsNamespaceProperties&& 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::String m_vpc; bool m_vpcHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; PrivateDnsNamespaceProperties m_properties; bool m_propertiesHasBeenSet = false; }; } // namespace Model } // namespace ServiceDiscovery } // namespace Aws