/** * 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 ElasticBeanstalk { namespace Model { /** *

Request to create an application.

See Also:

AWS * API Reference

*/ class CreateApplicationRequest : public ElasticBeanstalkRequest { public: AWS_ELASTICBEANSTALK_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_ELASTICBEANSTALK_API Aws::String SerializePayload() const override; protected: AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name of the application. Must be unique within your account.

*/ inline const Aws::String& GetApplicationName() const{ return m_applicationName; } /** *

The name of the application. Must be unique within your account.

*/ inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; } /** *

The name of the application. Must be unique within your account.

*/ inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; } /** *

The name of the application. Must be unique within your account.

*/ inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); } /** *

The name of the application. Must be unique within your account.

*/ inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); } /** *

The name of the application. Must be unique within your account.

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

The name of the application. Must be unique within your account.

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

The name of the application. Must be unique within your account.

*/ inline CreateApplicationRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;} /** *

Your description of the application.

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

Your description of the application.

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

Your description of the application.

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

Your description of the application.

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

Your description of the application.

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

Your description of the application.

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

Your description of the application.

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

Your description of the application.

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

Specifies an application resource lifecycle configuration to prevent your * application from accumulating too many versions.

*/ inline const ApplicationResourceLifecycleConfig& GetResourceLifecycleConfig() const{ return m_resourceLifecycleConfig; } /** *

Specifies an application resource lifecycle configuration to prevent your * application from accumulating too many versions.

*/ inline bool ResourceLifecycleConfigHasBeenSet() const { return m_resourceLifecycleConfigHasBeenSet; } /** *

Specifies an application resource lifecycle configuration to prevent your * application from accumulating too many versions.

*/ inline void SetResourceLifecycleConfig(const ApplicationResourceLifecycleConfig& value) { m_resourceLifecycleConfigHasBeenSet = true; m_resourceLifecycleConfig = value; } /** *

Specifies an application resource lifecycle configuration to prevent your * application from accumulating too many versions.

*/ inline void SetResourceLifecycleConfig(ApplicationResourceLifecycleConfig&& value) { m_resourceLifecycleConfigHasBeenSet = true; m_resourceLifecycleConfig = std::move(value); } /** *

Specifies an application resource lifecycle configuration to prevent your * application from accumulating too many versions.

*/ inline CreateApplicationRequest& WithResourceLifecycleConfig(const ApplicationResourceLifecycleConfig& value) { SetResourceLifecycleConfig(value); return *this;} /** *

Specifies an application resource lifecycle configuration to prevent your * application from accumulating too many versions.

*/ inline CreateApplicationRequest& WithResourceLifecycleConfig(ApplicationResourceLifecycleConfig&& value) { SetResourceLifecycleConfig(std::move(value)); return *this;} /** *

Specifies the tags applied to the application.

Elastic Beanstalk * applies these tags only to the application. Environments that you create in the * application don't inherit the tags.

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

Specifies the tags applied to the application.

Elastic Beanstalk * applies these tags only to the application. Environments that you create in the * application don't inherit the tags.

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

Specifies the tags applied to the application.

Elastic Beanstalk * applies these tags only to the application. Environments that you create in the * application don't inherit the tags.

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

Specifies the tags applied to the application.

Elastic Beanstalk * applies these tags only to the application. Environments that you create in the * application don't inherit the tags.

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

Specifies the tags applied to the application.

Elastic Beanstalk * applies these tags only to the application. Environments that you create in the * application don't inherit the tags.

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

Specifies the tags applied to the application.

Elastic Beanstalk * applies these tags only to the application. Environments that you create in the * application don't inherit the tags.

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

Specifies the tags applied to the application.

Elastic Beanstalk * applies these tags only to the application. Environments that you create in the * application don't inherit the tags.

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

Specifies the tags applied to the application.

Elastic Beanstalk * applies these tags only to the application. Environments that you create in the * application don't inherit the tags.

*/ inline CreateApplicationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_applicationName; bool m_applicationNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; ApplicationResourceLifecycleConfig m_resourceLifecycleConfig; bool m_resourceLifecycleConfigHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws