/** * 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 AppRegistry { namespace Model { /** */ class CreateApplicationRequest : public AppRegistryRequest { public: AWS_APPREGISTRY_API CreateApplicationRequest(); // 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 "CreateApplication"; } AWS_APPREGISTRY_API Aws::String SerializePayload() const override; /** *

The name of the application. The name must be unique in the region in which * you are creating the application.

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

The name of the application. The name must be unique in the region in which * you are creating the application.

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

The name of the application. The name must be unique in the region in which * you are creating the application.

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

The name of the application. The name must be unique in the region in which * you are creating the application.

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

The name of the application. The name must be unique in the region in which * you are creating the application.

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

The name of the application. The name must be unique in the region in which * you are creating the application.

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

The name of the application. The name must be unique in the region in which * you are creating the application.

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

The name of the application. The name must be unique in the region in which * you are creating the application.

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

The description of the application.

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

The description of the application.

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

The description of the application.

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

The description of the application.

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

The description of the application.

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

The description of the application.

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

The description of the application.

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

The description of the application.

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

Key-value pairs you can use to associate with the application.

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

Key-value pairs you can use to associate with the application.

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

Key-value pairs you can use to associate with the application.

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

Key-value pairs you can use to associate with the application.

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

Key-value pairs you can use to associate with the application.

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

Key-value pairs you can use to associate with the application.

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

Key-value pairs you can use to associate with the application.

*/ inline CreateApplicationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Key-value pairs you can use to associate with the application.

*/ inline CreateApplicationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Key-value pairs you can use to associate with the application.

*/ inline CreateApplicationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Key-value pairs you can use to associate with the application.

*/ inline CreateApplicationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Key-value pairs you can use to associate with the application.

*/ inline CreateApplicationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Key-value pairs you can use to associate with the application.

*/ inline CreateApplicationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Key-value pairs you can use to associate with the application.

*/ inline CreateApplicationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A unique identifier that you provide to ensure idempotency. If you retry a * request that completed successfully using the same client token and the same * parameters, the retry succeeds without performing any further actions. If you * retry a successful request using the same client token, but one or more of the * parameters are different, the retry fails.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique identifier that you provide to ensure idempotency. If you retry a * request that completed successfully using the same client token and the same * parameters, the retry succeeds without performing any further actions. If you * retry a successful request using the same client token, but one or more of the * parameters are different, the retry fails.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique identifier that you provide to ensure idempotency. If you retry a * request that completed successfully using the same client token and the same * parameters, the retry succeeds without performing any further actions. If you * retry a successful request using the same client token, but one or more of the * parameters are different, the retry fails.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique identifier that you provide to ensure idempotency. If you retry a * request that completed successfully using the same client token and the same * parameters, the retry succeeds without performing any further actions. If you * retry a successful request using the same client token, but one or more of the * parameters are different, the retry fails.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique identifier that you provide to ensure idempotency. If you retry a * request that completed successfully using the same client token and the same * parameters, the retry succeeds without performing any further actions. If you * retry a successful request using the same client token, but one or more of the * parameters are different, the retry fails.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique identifier that you provide to ensure idempotency. If you retry a * request that completed successfully using the same client token and the same * parameters, the retry succeeds without performing any further actions. If you * retry a successful request using the same client token, but one or more of the * parameters are different, the retry fails.

*/ inline CreateApplicationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique identifier that you provide to ensure idempotency. If you retry a * request that completed successfully using the same client token and the same * parameters, the retry succeeds without performing any further actions. If you * retry a successful request using the same client token, but one or more of the * parameters are different, the retry fails.

*/ inline CreateApplicationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique identifier that you provide to ensure idempotency. If you retry a * request that completed successfully using the same client token and the same * parameters, the retry succeeds without performing any further actions. If you * retry a successful request using the same client token, but one or more of the * parameters are different, the retry fails.

*/ inline CreateApplicationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace AppRegistry } // namespace Aws