/** * 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 namespace Aws { namespace ServiceDiscovery { namespace Model { /** */ class CreateHttpNamespaceRequest : public ServiceDiscoveryRequest { public: AWS_SERVICEDISCOVERY_API CreateHttpNamespaceRequest(); // 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 "CreateHttpNamespace"; } 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.

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

The name that you want to assign to this namespace.

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

The name that you want to assign to this namespace.

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

The name that you want to assign to this 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.

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

The name that you want to assign to this namespace.

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

The name that you want to assign to this namespace.

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

The name that you want to assign to this namespace.

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

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

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

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

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

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

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

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

*/ 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 * CreateHttpNamespace requests to be retried without the risk of * running the operation twice. CreatorRequestId can be any unique * string (for example, a date/time stamp).

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

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

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

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

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

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

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

A description for the namespace.

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

A description for the namespace.

*/ inline CreateHttpNamespaceRequest& 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 CreateHttpNamespaceRequest& 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 CreateHttpNamespaceRequest& 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 CreateHttpNamespaceRequest& 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 CreateHttpNamespaceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(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; }; } // namespace Model } // namespace ServiceDiscovery } // namespace Aws