/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.mainframemodernization.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateEnvironmentRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* 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. *
*/ private String clientToken; /** ** The description of the runtime environment. *
*/ private String description; /** ** The engine type for the runtime environment. *
*/ private String engineType; /** ** The version of the engine type for the runtime environment. *
*/ private String engineVersion; /** ** The details of a high availability configuration for this runtime environment. *
*/ private HighAvailabilityConfig highAvailabilityConfig; /** ** The type of instance for the runtime environment. *
*/ private String instanceType; /** ** The identifier of a customer managed key. *
*/ private String kmsKeyId; /** ** The name of the runtime environment. Must be unique within the account. *
*/ private String name; /** ** 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. *
*/ private String preferredMaintenanceWindow; /** ** Specifies whether the runtime environment is publicly accessible. *
*/ private Boolean publiclyAccessible; /** ** The list of security groups for the VPC associated with this runtime environment. *
*/ private java.util.List* Optional. The storage configurations for this runtime environment. *
*/ private java.util.List* The list of subnets associated with the VPC for this runtime environment. *
*/ private java.util.List* The tags for the runtime environment. *
*/ private java.util.Map* 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. *
* * @param 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. */ public void setClientToken(String clientToken) { this.clientToken = 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. *
* * @return 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. */ public String getClientToken() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** ** The description of the runtime environment. *
* * @param description * The description of the runtime environment. */ public void setDescription(String description) { this.description = description; } /** ** The description of the runtime environment. *
* * @return The description of the runtime environment. */ public String getDescription() { return this.description; } /** ** The description of the runtime environment. *
* * @param description * The description of the runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withDescription(String description) { setDescription(description); return this; } /** ** The engine type for the runtime environment. *
* * @param engineType * The engine type for the runtime environment. * @see EngineType */ public void setEngineType(String engineType) { this.engineType = engineType; } /** ** The engine type for the runtime environment. *
* * @return The engine type for the runtime environment. * @see EngineType */ public String getEngineType() { return this.engineType; } /** ** The engine type for the runtime environment. *
* * @param engineType * The engine type for the runtime environment. * @return Returns a reference to this object so that method calls can be chained together. * @see EngineType */ public CreateEnvironmentRequest withEngineType(String engineType) { setEngineType(engineType); return this; } /** ** The engine type for the runtime environment. *
* * @param engineType * The engine type for the runtime environment. * @return Returns a reference to this object so that method calls can be chained together. * @see EngineType */ public CreateEnvironmentRequest withEngineType(EngineType engineType) { this.engineType = engineType.toString(); return this; } /** ** The version of the engine type for the runtime environment. *
* * @param engineVersion * The version of the engine type for the runtime environment. */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** ** The version of the engine type for the runtime environment. *
* * @return The version of the engine type for the runtime environment. */ public String getEngineVersion() { return this.engineVersion; } /** ** The version of the engine type for the runtime environment. *
* * @param engineVersion * The version of the engine type for the runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); return this; } /** ** The details of a high availability configuration for this runtime environment. *
* * @param highAvailabilityConfig * The details of a high availability configuration for this runtime environment. */ public void setHighAvailabilityConfig(HighAvailabilityConfig highAvailabilityConfig) { this.highAvailabilityConfig = highAvailabilityConfig; } /** ** The details of a high availability configuration for this runtime environment. *
* * @return The details of a high availability configuration for this runtime environment. */ public HighAvailabilityConfig getHighAvailabilityConfig() { return this.highAvailabilityConfig; } /** ** The details of a high availability configuration for this runtime environment. *
* * @param highAvailabilityConfig * The details of a high availability configuration for this runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withHighAvailabilityConfig(HighAvailabilityConfig highAvailabilityConfig) { setHighAvailabilityConfig(highAvailabilityConfig); return this; } /** ** The type of instance for the runtime environment. *
* * @param instanceType * The type of instance for the runtime environment. */ public void setInstanceType(String instanceType) { this.instanceType = instanceType; } /** ** The type of instance for the runtime environment. *
* * @return The type of instance for the runtime environment. */ public String getInstanceType() { return this.instanceType; } /** ** The type of instance for the runtime environment. *
* * @param instanceType * The type of instance for the runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withInstanceType(String instanceType) { setInstanceType(instanceType); return this; } /** ** The identifier of a customer managed key. *
* * @param kmsKeyId * The identifier of a customer managed key. */ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } /** ** The identifier of a customer managed key. *
* * @return The identifier of a customer managed key. */ public String getKmsKeyId() { return this.kmsKeyId; } /** ** The identifier of a customer managed key. *
* * @param kmsKeyId * The identifier of a customer managed key. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withKmsKeyId(String kmsKeyId) { setKmsKeyId(kmsKeyId); return this; } /** ** The name of the runtime environment. Must be unique within the account. *
* * @param name * The name of the runtime environment. Must be unique within the account. */ public void setName(String name) { this.name = name; } /** ** The name of the runtime environment. Must be unique within the account. *
* * @return The name of the runtime environment. Must be unique within the account. */ public String getName() { return this.name; } /** ** The name of the runtime environment. Must be unique within the account. *
* * @param name * The name of the runtime environment. Must be unique within the account. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withName(String name) { setName(name); 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. *
* * @param 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. */ public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow) { this.preferredMaintenanceWindow = 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. *
* * @return 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. */ public String getPreferredMaintenanceWindow() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withPreferredMaintenanceWindow(String preferredMaintenanceWindow) { setPreferredMaintenanceWindow(preferredMaintenanceWindow); return this; } /** ** Specifies whether the runtime environment is publicly accessible. *
* * @param publiclyAccessible * Specifies whether the runtime environment is publicly accessible. */ public void setPubliclyAccessible(Boolean publiclyAccessible) { this.publiclyAccessible = publiclyAccessible; } /** ** Specifies whether the runtime environment is publicly accessible. *
* * @return Specifies whether the runtime environment is publicly accessible. */ public Boolean getPubliclyAccessible() { return this.publiclyAccessible; } /** ** Specifies whether the runtime environment is publicly accessible. *
* * @param publiclyAccessible * Specifies whether the runtime environment is publicly accessible. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withPubliclyAccessible(Boolean publiclyAccessible) { setPubliclyAccessible(publiclyAccessible); return this; } /** ** Specifies whether the runtime environment is publicly accessible. *
* * @return Specifies whether the runtime environment is publicly accessible. */ public Boolean isPubliclyAccessible() { return this.publiclyAccessible; } /** ** The list of security groups for the VPC associated with this runtime environment. *
* * @return The list of security groups for the VPC associated with this runtime environment. */ public java.util.List* The list of security groups for the VPC associated with this runtime environment. *
* * @param securityGroupIds * The list of security groups for the VPC associated with this runtime environment. */ public void setSecurityGroupIds(java.util.Collection* The list of security groups for the VPC associated with this runtime environment. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecurityGroupIds(java.util.Collection)} or {@link #withSecurityGroupIds(java.util.Collection)} if you * want to override the existing values. *
* * @param securityGroupIds * The list of security groups for the VPC associated with this runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withSecurityGroupIds(String... securityGroupIds) { if (this.securityGroupIds == null) { setSecurityGroupIds(new java.util.ArrayList* The list of security groups for the VPC associated with this runtime environment. *
* * @param securityGroupIds * The list of security groups for the VPC associated with this runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withSecurityGroupIds(java.util.Collection* Optional. The storage configurations for this runtime environment. *
* * @return Optional. The storage configurations for this runtime environment. */ public java.util.List* Optional. The storage configurations for this runtime environment. *
* * @param storageConfigurations * Optional. The storage configurations for this runtime environment. */ public void setStorageConfigurations(java.util.Collection* Optional. The storage configurations for this runtime environment. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStorageConfigurations(java.util.Collection)} or * {@link #withStorageConfigurations(java.util.Collection)} if you want to override the existing values. *
* * @param storageConfigurations * Optional. The storage configurations for this runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withStorageConfigurations(StorageConfiguration... storageConfigurations) { if (this.storageConfigurations == null) { setStorageConfigurations(new java.util.ArrayList* Optional. The storage configurations for this runtime environment. *
* * @param storageConfigurations * Optional. The storage configurations for this runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withStorageConfigurations(java.util.Collection* The list of subnets associated with the VPC for this runtime environment. *
* * @return The list of subnets associated with the VPC for this runtime environment. */ public java.util.List* The list of subnets associated with the VPC for this runtime environment. *
* * @param subnetIds * The list of subnets associated with the VPC for this runtime environment. */ public void setSubnetIds(java.util.Collection* The list of subnets associated with the VPC for this runtime environment. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubnetIds(java.util.Collection)} or {@link #withSubnetIds(java.util.Collection)} if you want to * override the existing values. *
* * @param subnetIds * The list of subnets associated with the VPC for this runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withSubnetIds(String... subnetIds) { if (this.subnetIds == null) { setSubnetIds(new java.util.ArrayList* The list of subnets associated with the VPC for this runtime environment. *
* * @param subnetIds * The list of subnets associated with the VPC for this runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withSubnetIds(java.util.Collection* The tags for the runtime environment. *
* * @return The tags for the runtime environment. */ public java.util.Map* The tags for the runtime environment. *
* * @param tags * The tags for the runtime environment. */ public void setTags(java.util.Map* The tags for the runtime environment. *
* * @param tags * The tags for the runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withTags(java.util.Map