Interface CreateEnvironmentRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateEnvironmentRequest.Builder,
,CreateEnvironmentRequest> M2Request.Builder
,SdkBuilder<CreateEnvironmentRequest.Builder,
,CreateEnvironmentRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateEnvironmentRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create an environment.description
(String description) The description of the runtime environment.engineType
(String engineType) The engine type for the runtime environment.engineType
(EngineType engineType) The engine type for the runtime environment.engineVersion
(String engineVersion) The version of the engine type for the runtime environment.default CreateEnvironmentRequest.Builder
highAvailabilityConfig
(Consumer<HighAvailabilityConfig.Builder> highAvailabilityConfig) The details of a high availability configuration for this runtime environment.highAvailabilityConfig
(HighAvailabilityConfig highAvailabilityConfig) The details of a high availability configuration for this runtime environment.instanceType
(String instanceType) The type of instance for the runtime environment.The identifier of a customer managed key.The name of the runtime environment.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.preferredMaintenanceWindow
(String preferredMaintenanceWindow) Configures the maintenance window that you want for the runtime environment.publiclyAccessible
(Boolean publiclyAccessible) Specifies whether the runtime environment is publicly accessible.securityGroupIds
(String... securityGroupIds) The list of security groups for the VPC associated with this runtime environment.securityGroupIds
(Collection<String> securityGroupIds) The list of security groups for the VPC associated with this runtime environment.storageConfigurations
(Collection<StorageConfiguration> storageConfigurations) Optional.storageConfigurations
(Consumer<StorageConfiguration.Builder>... storageConfigurations) Optional.storageConfigurations
(StorageConfiguration... storageConfigurations) Optional.The list of subnets associated with the VPC for this runtime environment.subnetIds
(Collection<String> subnetIds) The list of subnets associated with the VPC for this runtime environment.The tags for the runtime environment.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.m2.model.M2Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the runtime environment.
- Parameters:
description
- The description of the runtime environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engineType
The engine type for the runtime environment.
- Parameters:
engineType
- The engine type for the runtime environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
engineType
The engine type for the runtime environment.
- Parameters:
engineType
- The engine type for the runtime environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
engineVersion
The version of the engine type for the runtime environment.
- Parameters:
engineVersion
- The version of the engine type for the runtime environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
highAvailabilityConfig
CreateEnvironmentRequest.Builder highAvailabilityConfig(HighAvailabilityConfig highAvailabilityConfig) The details of a high availability configuration for this runtime environment.
- Parameters:
highAvailabilityConfig
- The details of a high availability configuration for this runtime environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
highAvailabilityConfig
default CreateEnvironmentRequest.Builder highAvailabilityConfig(Consumer<HighAvailabilityConfig.Builder> highAvailabilityConfig) The details of a high availability configuration for this runtime environment.
This is a convenience method that creates an instance of theHighAvailabilityConfig.Builder
avoiding the need to create one manually viaHighAvailabilityConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohighAvailabilityConfig(HighAvailabilityConfig)
.- Parameters:
highAvailabilityConfig
- a consumer that will call methods onHighAvailabilityConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
The type of instance for the runtime environment.
- Parameters:
instanceType
- The type of instance for the runtime environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
The identifier of a customer managed key.
- Parameters:
kmsKeyId
- The identifier of a customer managed key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the runtime environment. Must be unique within the account.
- Parameters:
name
- The name of the runtime environment. Must be unique within the account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preferredMaintenanceWindow
Configures the maintenance window that you want for the runtime environment. The maintenance window must have the format
ddd:hh24:mi-ddd:hh24:mi
and must be less than 24 hours. The following two examples are valid maintenance windows:sun:23:45-mon:00:15
orsat:01:00-sat:03:00
.If you do not provide a value, a random system-generated value will be assigned.
- Parameters:
preferredMaintenanceWindow
- Configures the maintenance window that you want for the runtime environment. The maintenance window must have the formatddd:hh24:mi-ddd:hh24:mi
and must be less than 24 hours. The following two examples are valid maintenance windows:sun:23:45-mon:00:15
orsat:01:00-sat:03:00
.If you do not provide a value, a random system-generated value will be assigned.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publiclyAccessible
Specifies whether the runtime environment is publicly accessible.
- Parameters:
publiclyAccessible
- Specifies whether the runtime environment is publicly accessible.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
The list of security groups for the VPC associated with this runtime environment.
- Parameters:
securityGroupIds
- The list of security groups for the VPC associated with this runtime environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
The list of security groups for the VPC associated with this runtime environment.
- Parameters:
securityGroupIds
- The list of security groups for the VPC associated with this runtime environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageConfigurations
CreateEnvironmentRequest.Builder storageConfigurations(Collection<StorageConfiguration> storageConfigurations) Optional. The storage configurations for this runtime environment.
- Parameters:
storageConfigurations
- Optional. The storage configurations for this runtime environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageConfigurations
CreateEnvironmentRequest.Builder storageConfigurations(StorageConfiguration... storageConfigurations) Optional. The storage configurations for this runtime environment.
- Parameters:
storageConfigurations
- Optional. The storage configurations for this runtime environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageConfigurations
CreateEnvironmentRequest.Builder storageConfigurations(Consumer<StorageConfiguration.Builder>... storageConfigurations) Optional. The storage configurations for this runtime environment.
This is a convenience method that creates an instance of theStorageConfiguration.Builder
avoiding the need to create one manually viaStorageConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostorageConfigurations(List<StorageConfiguration>)
.- Parameters:
storageConfigurations
- a consumer that will call methods onStorageConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
subnetIds
The list of subnets associated with the VPC for this runtime environment.
- Parameters:
subnetIds
- The list of subnets associated with the VPC for this runtime environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetIds
The list of subnets associated with the VPC for this runtime environment.
- Parameters:
subnetIds
- The list of subnets associated with the VPC for this runtime environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for the runtime environment.
- Parameters:
tags
- The tags for the runtime environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateEnvironmentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateEnvironmentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-