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

Request to create a new platform version.

See Also:

AWS * API Reference

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

The name of your custom platform.

*/ inline const Aws::String& GetPlatformName() const{ return m_platformName; } /** *

The name of your custom platform.

*/ inline bool PlatformNameHasBeenSet() const { return m_platformNameHasBeenSet; } /** *

The name of your custom platform.

*/ inline void SetPlatformName(const Aws::String& value) { m_platformNameHasBeenSet = true; m_platformName = value; } /** *

The name of your custom platform.

*/ inline void SetPlatformName(Aws::String&& value) { m_platformNameHasBeenSet = true; m_platformName = std::move(value); } /** *

The name of your custom platform.

*/ inline void SetPlatformName(const char* value) { m_platformNameHasBeenSet = true; m_platformName.assign(value); } /** *

The name of your custom platform.

*/ inline CreatePlatformVersionRequest& WithPlatformName(const Aws::String& value) { SetPlatformName(value); return *this;} /** *

The name of your custom platform.

*/ inline CreatePlatformVersionRequest& WithPlatformName(Aws::String&& value) { SetPlatformName(std::move(value)); return *this;} /** *

The name of your custom platform.

*/ inline CreatePlatformVersionRequest& WithPlatformName(const char* value) { SetPlatformName(value); return *this;} /** *

The number, such as 1.0.2, for the new platform version.

*/ inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; } /** *

The number, such as 1.0.2, for the new platform version.

*/ inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; } /** *

The number, such as 1.0.2, for the new platform version.

*/ inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; } /** *

The number, such as 1.0.2, for the new platform version.

*/ inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::move(value); } /** *

The number, such as 1.0.2, for the new platform version.

*/ inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); } /** *

The number, such as 1.0.2, for the new platform version.

*/ inline CreatePlatformVersionRequest& WithPlatformVersion(const Aws::String& value) { SetPlatformVersion(value); return *this;} /** *

The number, such as 1.0.2, for the new platform version.

*/ inline CreatePlatformVersionRequest& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(std::move(value)); return *this;} /** *

The number, such as 1.0.2, for the new platform version.

*/ inline CreatePlatformVersionRequest& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;} /** *

The location of the platform definition archive in Amazon S3.

*/ inline const S3Location& GetPlatformDefinitionBundle() const{ return m_platformDefinitionBundle; } /** *

The location of the platform definition archive in Amazon S3.

*/ inline bool PlatformDefinitionBundleHasBeenSet() const { return m_platformDefinitionBundleHasBeenSet; } /** *

The location of the platform definition archive in Amazon S3.

*/ inline void SetPlatformDefinitionBundle(const S3Location& value) { m_platformDefinitionBundleHasBeenSet = true; m_platformDefinitionBundle = value; } /** *

The location of the platform definition archive in Amazon S3.

*/ inline void SetPlatformDefinitionBundle(S3Location&& value) { m_platformDefinitionBundleHasBeenSet = true; m_platformDefinitionBundle = std::move(value); } /** *

The location of the platform definition archive in Amazon S3.

*/ inline CreatePlatformVersionRequest& WithPlatformDefinitionBundle(const S3Location& value) { SetPlatformDefinitionBundle(value); return *this;} /** *

The location of the platform definition archive in Amazon S3.

*/ inline CreatePlatformVersionRequest& WithPlatformDefinitionBundle(S3Location&& value) { SetPlatformDefinitionBundle(std::move(value)); return *this;} /** *

The name of the builder environment.

*/ inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; } /** *

The name of the builder environment.

*/ inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; } /** *

The name of the builder environment.

*/ inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; } /** *

The name of the builder environment.

*/ inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); } /** *

The name of the builder environment.

*/ inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); } /** *

The name of the builder environment.

*/ inline CreatePlatformVersionRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;} /** *

The name of the builder environment.

*/ inline CreatePlatformVersionRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;} /** *

The name of the builder environment.

*/ inline CreatePlatformVersionRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;} /** *

The configuration option settings to apply to the builder environment.

*/ inline const Aws::Vector& GetOptionSettings() const{ return m_optionSettings; } /** *

The configuration option settings to apply to the builder environment.

*/ inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; } /** *

The configuration option settings to apply to the builder environment.

*/ inline void SetOptionSettings(const Aws::Vector& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = value; } /** *

The configuration option settings to apply to the builder environment.

*/ inline void SetOptionSettings(Aws::Vector&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = std::move(value); } /** *

The configuration option settings to apply to the builder environment.

*/ inline CreatePlatformVersionRequest& WithOptionSettings(const Aws::Vector& value) { SetOptionSettings(value); return *this;} /** *

The configuration option settings to apply to the builder environment.

*/ inline CreatePlatformVersionRequest& WithOptionSettings(Aws::Vector&& value) { SetOptionSettings(std::move(value)); return *this;} /** *

The configuration option settings to apply to the builder environment.

*/ inline CreatePlatformVersionRequest& AddOptionSettings(const ConfigurationOptionSetting& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(value); return *this; } /** *

The configuration option settings to apply to the builder environment.

*/ inline CreatePlatformVersionRequest& AddOptionSettings(ConfigurationOptionSetting&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(std::move(value)); return *this; } /** *

Specifies the tags applied to the new platform version.

Elastic * Beanstalk applies these tags only to the platform version. Environments that you * create using the platform version don't inherit the tags.

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

Specifies the tags applied to the new platform version.

Elastic * Beanstalk applies these tags only to the platform version. Environments that you * create using the platform version don't inherit the tags.

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

Specifies the tags applied to the new platform version.

Elastic * Beanstalk applies these tags only to the platform version. Environments that you * create using the platform version don't inherit the tags.

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

Specifies the tags applied to the new platform version.

Elastic * Beanstalk applies these tags only to the platform version. Environments that you * create using the platform version 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 new platform version.

Elastic * Beanstalk applies these tags only to the platform version. Environments that you * create using the platform version don't inherit the tags.

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

Specifies the tags applied to the new platform version.

Elastic * Beanstalk applies these tags only to the platform version. Environments that you * create using the platform version don't inherit the tags.

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

Specifies the tags applied to the new platform version.

Elastic * Beanstalk applies these tags only to the platform version. Environments that you * create using the platform version don't inherit the tags.

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

Specifies the tags applied to the new platform version.

Elastic * Beanstalk applies these tags only to the platform version. Environments that you * create using the platform version don't inherit the tags.

*/ inline CreatePlatformVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_platformName; bool m_platformNameHasBeenSet = false; Aws::String m_platformVersion; bool m_platformVersionHasBeenSet = false; S3Location m_platformDefinitionBundle; bool m_platformDefinitionBundleHasBeenSet = false; Aws::String m_environmentName; bool m_environmentNameHasBeenSet = false; Aws::Vector m_optionSettings; bool m_optionSettingsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws