/** * 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 #include #include namespace Aws { namespace MainframeModernization { namespace Model { /** */ class CreateEnvironmentRequest : public MainframeModernizationRequest { public: AWS_MAINFRAMEMODERNIZATION_API CreateEnvironmentRequest(); // 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 "CreateEnvironment"; } AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override; /** *

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request to create an environment. The service generates the clientToken when * the API call is triggered. The token expires after one hour, so if you retry the * API within this timeframe with the same clientToken, you will get the same * response. The service also handles deleting the clientToken after it expires. *

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

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request to create an environment. The service generates the clientToken when * the API call is triggered. The token expires after one hour, so if you retry the * API within this timeframe with the same clientToken, you will get the same * response. The service also handles deleting the clientToken after it expires. *

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

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request to create an environment. The service generates the clientToken when * the API call is triggered. The token expires after one hour, so if you retry the * API within this timeframe with the same clientToken, you will get the same * response. The service also handles deleting the clientToken after it expires. *

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

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request to create an environment. The service generates the clientToken when * the API call is triggered. The token expires after one hour, so if you retry the * API within this timeframe with the same clientToken, you will get the same * response. The service also handles deleting the clientToken after it expires. *

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

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request to create an environment. The service generates the clientToken when * the API call is triggered. The token expires after one hour, so if you retry the * API within this timeframe with the same clientToken, you will get the same * response. The service also handles deleting the clientToken after it expires. *

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

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request to create an environment. The service generates the clientToken when * the API call is triggered. The token expires after one hour, so if you retry the * API within this timeframe with the same clientToken, you will get the same * response. The service also handles deleting the clientToken after it expires. *

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

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request to create an environment. The service generates the clientToken when * the API call is triggered. The token expires after one hour, so if you retry the * API within this timeframe with the same clientToken, you will get the same * response. The service also handles deleting the clientToken after it expires. *

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

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request to create an environment. The service generates the clientToken when * the API call is triggered. The token expires after one hour, so if you retry the * API within this timeframe with the same clientToken, you will get the same * response. The service also handles deleting the clientToken after it expires. *

*/ inline CreateEnvironmentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The description of the runtime environment.

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

The description of the runtime environment.

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

The description of the runtime environment.

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

The description of the runtime environment.

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

The description of the runtime environment.

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

The description of the runtime environment.

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

The description of the runtime environment.

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

The description of the runtime environment.

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

The engine type for the runtime environment.

*/ inline const EngineType& GetEngineType() const{ return m_engineType; } /** *

The engine type for the runtime environment.

*/ inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; } /** *

The engine type for the runtime environment.

*/ inline void SetEngineType(const EngineType& value) { m_engineTypeHasBeenSet = true; m_engineType = value; } /** *

The engine type for the runtime environment.

*/ inline void SetEngineType(EngineType&& value) { m_engineTypeHasBeenSet = true; m_engineType = std::move(value); } /** *

The engine type for the runtime environment.

*/ inline CreateEnvironmentRequest& WithEngineType(const EngineType& value) { SetEngineType(value); return *this;} /** *

The engine type for the runtime environment.

*/ inline CreateEnvironmentRequest& WithEngineType(EngineType&& value) { SetEngineType(std::move(value)); return *this;} /** *

The version of the engine type for the runtime environment.

*/ inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; } /** *

The version of the engine type for the runtime environment.

*/ inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; } /** *

The version of the engine type for the runtime environment.

*/ inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; } /** *

The version of the engine type for the runtime environment.

*/ inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); } /** *

The version of the engine type for the runtime environment.

*/ inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); } /** *

The version of the engine type for the runtime environment.

*/ inline CreateEnvironmentRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;} /** *

The version of the engine type for the runtime environment.

*/ inline CreateEnvironmentRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;} /** *

The version of the engine type for the runtime environment.

*/ inline CreateEnvironmentRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;} /** *

The details of a high availability configuration for this runtime * environment.

*/ inline const HighAvailabilityConfig& GetHighAvailabilityConfig() const{ return m_highAvailabilityConfig; } /** *

The details of a high availability configuration for this runtime * environment.

*/ inline bool HighAvailabilityConfigHasBeenSet() const { return m_highAvailabilityConfigHasBeenSet; } /** *

The details of a high availability configuration for this runtime * environment.

*/ inline void SetHighAvailabilityConfig(const HighAvailabilityConfig& value) { m_highAvailabilityConfigHasBeenSet = true; m_highAvailabilityConfig = value; } /** *

The details of a high availability configuration for this runtime * environment.

*/ inline void SetHighAvailabilityConfig(HighAvailabilityConfig&& value) { m_highAvailabilityConfigHasBeenSet = true; m_highAvailabilityConfig = std::move(value); } /** *

The details of a high availability configuration for this runtime * environment.

*/ inline CreateEnvironmentRequest& WithHighAvailabilityConfig(const HighAvailabilityConfig& value) { SetHighAvailabilityConfig(value); return *this;} /** *

The details of a high availability configuration for this runtime * environment.

*/ inline CreateEnvironmentRequest& WithHighAvailabilityConfig(HighAvailabilityConfig&& value) { SetHighAvailabilityConfig(std::move(value)); return *this;} /** *

The type of instance for the runtime environment.

*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *

The type of instance for the runtime environment.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

The type of instance for the runtime environment.

*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

The type of instance for the runtime environment.

*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

The type of instance for the runtime environment.

*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *

The type of instance for the runtime environment.

*/ inline CreateEnvironmentRequest& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *

The type of instance for the runtime environment.

*/ inline CreateEnvironmentRequest& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *

The type of instance for the runtime environment.

*/ inline CreateEnvironmentRequest& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} /** *

The identifier of a customer managed key.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

The identifier of a customer managed key.

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

The identifier of a customer managed key.

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

The identifier of a customer managed key.

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

The identifier of a customer managed key.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

The identifier of a customer managed key.

*/ inline CreateEnvironmentRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

The identifier of a customer managed key.

*/ inline CreateEnvironmentRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

The identifier of a customer managed key.

*/ inline CreateEnvironmentRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *

The name of the runtime environment. Must be unique within the account.

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

The name of the runtime environment. Must be unique within the account.

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

The name of the runtime environment. Must be unique within the account.

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

The name of the runtime environment. Must be unique within the account.

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

The name of the runtime environment. Must be unique within the account.

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

The name of the runtime environment. Must be unique within the account.

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

The name of the runtime environment. Must be unique within the account.

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

The name of the runtime environment. Must be unique within the account.

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

Configures the maintenance window you want for the runtime environment. If * you do not provide a value, a random system-generated value will be * assigned.

*/ inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; } /** *

Configures the maintenance window you want for the runtime environment. If * you do not provide a value, a random system-generated value will be * assigned.

*/ inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; } /** *

Configures the maintenance window you want for the runtime environment. If * you do not provide a value, a random system-generated value will be * assigned.

*/ inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; } /** *

Configures the maintenance window you want for the runtime environment. If * you do not provide a value, a random system-generated value will be * assigned.

*/ inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); } /** *

Configures the maintenance window you want for the runtime environment. If * you do not provide a value, a random system-generated value will be * assigned.

*/ inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); } /** *

Configures the maintenance window you want for the runtime environment. If * you do not provide a value, a random system-generated value will be * assigned.

*/ inline CreateEnvironmentRequest& WithPreferredMaintenanceWindow(const Aws::String& value) { SetPreferredMaintenanceWindow(value); return *this;} /** *

Configures the maintenance window you want for the runtime environment. If * you do not provide a value, a random system-generated value will be * assigned.

*/ inline CreateEnvironmentRequest& WithPreferredMaintenanceWindow(Aws::String&& value) { SetPreferredMaintenanceWindow(std::move(value)); return *this;} /** *

Configures the maintenance window you want for the runtime environment. If * you do not provide a value, a random system-generated value will be * assigned.

*/ inline CreateEnvironmentRequest& WithPreferredMaintenanceWindow(const char* value) { SetPreferredMaintenanceWindow(value); return *this;} /** *

Specifies whether the runtime environment is publicly accessible.

*/ inline bool GetPubliclyAccessible() const{ return m_publiclyAccessible; } /** *

Specifies whether the runtime environment is publicly accessible.

*/ inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; } /** *

Specifies whether the runtime environment is publicly accessible.

*/ inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; } /** *

Specifies whether the runtime environment is publicly accessible.

*/ inline CreateEnvironmentRequest& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;} /** *

The list of security groups for the VPC associated with this runtime * environment.

*/ inline const Aws::Vector& GetSecurityGroupIds() const{ return m_securityGroupIds; } /** *

The list of security groups for the VPC associated with this runtime * environment.

*/ inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } /** *

The list of security groups for the VPC associated with this runtime * environment.

*/ inline void SetSecurityGroupIds(const Aws::Vector& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; } /** *

The list of security groups for the VPC associated with this runtime * environment.

*/ inline void SetSecurityGroupIds(Aws::Vector&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); } /** *

The list of security groups for the VPC associated with this runtime * environment.

*/ inline CreateEnvironmentRequest& WithSecurityGroupIds(const Aws::Vector& value) { SetSecurityGroupIds(value); return *this;} /** *

The list of security groups for the VPC associated with this runtime * environment.

*/ inline CreateEnvironmentRequest& WithSecurityGroupIds(Aws::Vector&& value) { SetSecurityGroupIds(std::move(value)); return *this;} /** *

The list of security groups for the VPC associated with this runtime * environment.

*/ inline CreateEnvironmentRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

The list of security groups for the VPC associated with this runtime * environment.

*/ inline CreateEnvironmentRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } /** *

The list of security groups for the VPC associated with this runtime * environment.

*/ inline CreateEnvironmentRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

Optional. The storage configurations for this runtime environment.

*/ inline const Aws::Vector& GetStorageConfigurations() const{ return m_storageConfigurations; } /** *

Optional. The storage configurations for this runtime environment.

*/ inline bool StorageConfigurationsHasBeenSet() const { return m_storageConfigurationsHasBeenSet; } /** *

Optional. The storage configurations for this runtime environment.

*/ inline void SetStorageConfigurations(const Aws::Vector& value) { m_storageConfigurationsHasBeenSet = true; m_storageConfigurations = value; } /** *

Optional. The storage configurations for this runtime environment.

*/ inline void SetStorageConfigurations(Aws::Vector&& value) { m_storageConfigurationsHasBeenSet = true; m_storageConfigurations = std::move(value); } /** *

Optional. The storage configurations for this runtime environment.

*/ inline CreateEnvironmentRequest& WithStorageConfigurations(const Aws::Vector& value) { SetStorageConfigurations(value); return *this;} /** *

Optional. The storage configurations for this runtime environment.

*/ inline CreateEnvironmentRequest& WithStorageConfigurations(Aws::Vector&& value) { SetStorageConfigurations(std::move(value)); return *this;} /** *

Optional. The storage configurations for this runtime environment.

*/ inline CreateEnvironmentRequest& AddStorageConfigurations(const StorageConfiguration& value) { m_storageConfigurationsHasBeenSet = true; m_storageConfigurations.push_back(value); return *this; } /** *

Optional. The storage configurations for this runtime environment.

*/ inline CreateEnvironmentRequest& AddStorageConfigurations(StorageConfiguration&& value) { m_storageConfigurationsHasBeenSet = true; m_storageConfigurations.push_back(std::move(value)); return *this; } /** *

The list of subnets associated with the VPC for this runtime environment.

*/ inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } /** *

The list of subnets associated with the VPC for this runtime environment.

*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *

The list of subnets associated with the VPC for this runtime environment.

*/ inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } /** *

The list of subnets associated with the VPC for this runtime environment.

*/ inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } /** *

The list of subnets associated with the VPC for this runtime environment.

*/ inline CreateEnvironmentRequest& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} /** *

The list of subnets associated with the VPC for this runtime environment.

*/ inline CreateEnvironmentRequest& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} /** *

The list of subnets associated with the VPC for this runtime environment.

*/ inline CreateEnvironmentRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The list of subnets associated with the VPC for this runtime environment.

*/ inline CreateEnvironmentRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *

The list of subnets associated with the VPC for this runtime environment.

*/ inline CreateEnvironmentRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The tags for the runtime environment.

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

The tags for the runtime environment.

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

The tags for the runtime environment.

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

The tags for the runtime environment.

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

The tags for the runtime environment.

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

The tags for the runtime environment.

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

The tags for the runtime environment.

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

The tags for the runtime environment.

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

The tags for the runtime environment.

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

The tags for the runtime environment.

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

The tags for the runtime environment.

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

The tags for the runtime environment.

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

The tags for the runtime environment.

*/ inline CreateEnvironmentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; EngineType m_engineType; bool m_engineTypeHasBeenSet = false; Aws::String m_engineVersion; bool m_engineVersionHasBeenSet = false; HighAvailabilityConfig m_highAvailabilityConfig; bool m_highAvailabilityConfigHasBeenSet = false; Aws::String m_instanceType; bool m_instanceTypeHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_preferredMaintenanceWindow; bool m_preferredMaintenanceWindowHasBeenSet = false; bool m_publiclyAccessible; bool m_publiclyAccessibleHasBeenSet = false; Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet = false; Aws::Vector m_storageConfigurations; bool m_storageConfigurationsHasBeenSet = false; Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace MainframeModernization } // namespace Aws