Interface ComputeEnvironmentDetail.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ComputeEnvironmentDetail.Builder,ComputeEnvironmentDetail>,SdkBuilder<ComputeEnvironmentDetail.Builder,ComputeEnvironmentDetail>,SdkPojo
- Enclosing class:
- ComputeEnvironmentDetail
public static interface ComputeEnvironmentDetail.Builder extends SdkPojo, CopyableBuilder<ComputeEnvironmentDetail.Builder,ComputeEnvironmentDetail>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ComputeEnvironmentDetail.BuildercomputeEnvironmentArn(String computeEnvironmentArn)The Amazon Resource Name (ARN) of the compute environment.ComputeEnvironmentDetail.BuildercomputeEnvironmentName(String computeEnvironmentName)The name of the compute environment.default ComputeEnvironmentDetail.BuildercomputeResources(Consumer<ComputeResource.Builder> computeResources)The compute resources defined for the compute environment.ComputeEnvironmentDetail.BuildercomputeResources(ComputeResource computeResources)The compute resources defined for the compute environment.ComputeEnvironmentDetail.BuildercontainerOrchestrationType(String containerOrchestrationType)The orchestration type of the compute environment.ComputeEnvironmentDetail.BuildercontainerOrchestrationType(OrchestrationType containerOrchestrationType)The orchestration type of the compute environment.ComputeEnvironmentDetail.Buildercontext(String context)Reserved.ComputeEnvironmentDetail.BuilderecsClusterArn(String ecsClusterArn)The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the compute environment uses.default ComputeEnvironmentDetail.BuildereksConfiguration(Consumer<EksConfiguration.Builder> eksConfiguration)The configuration for the Amazon EKS cluster that supports the Batch compute environment.ComputeEnvironmentDetail.BuildereksConfiguration(EksConfiguration eksConfiguration)The configuration for the Amazon EKS cluster that supports the Batch compute environment.ComputeEnvironmentDetail.BuilderserviceRole(String serviceRole)The service role that's associated with the compute environment that allows Batch to make calls to Amazon Web Services API operations on your behalf.ComputeEnvironmentDetail.Builderstate(String state)The state of the compute environment.ComputeEnvironmentDetail.Builderstate(CEState state)The state of the compute environment.ComputeEnvironmentDetail.Builderstatus(String status)The current status of the compute environment (for example,CREATINGorVALID).ComputeEnvironmentDetail.Builderstatus(CEStatus status)The current status of the compute environment (for example,CREATINGorVALID).ComputeEnvironmentDetail.BuilderstatusReason(String statusReason)A short, human-readable string to provide additional details for the current status of the compute environment.ComputeEnvironmentDetail.Buildertags(Map<String,String> tags)The tags applied to the compute environment.ComputeEnvironmentDetail.Buildertype(String type)The type of the compute environment:MANAGEDorUNMANAGED.ComputeEnvironmentDetail.Buildertype(CEType type)The type of the compute environment:MANAGEDorUNMANAGED.ComputeEnvironmentDetail.BuilderunmanagedvCpus(Integer unmanagedvCpus)The maximum number of VCPUs expected to be used for an unmanaged compute environment.default ComputeEnvironmentDetail.BuilderupdatePolicy(Consumer<UpdatePolicy.Builder> updatePolicy)Specifies the infrastructure update policy for the compute environment.ComputeEnvironmentDetail.BuilderupdatePolicy(UpdatePolicy updatePolicy)Specifies the infrastructure update policy for the compute environment.ComputeEnvironmentDetail.Builderuuid(String uuid)Unique identifier for the compute environment.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
computeEnvironmentName
ComputeEnvironmentDetail.Builder computeEnvironmentName(String computeEnvironmentName)
The name of the compute environment. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
- Parameters:
computeEnvironmentName- The name of the compute environment. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
computeEnvironmentArn
ComputeEnvironmentDetail.Builder computeEnvironmentArn(String computeEnvironmentArn)
The Amazon Resource Name (ARN) of the compute environment.
- Parameters:
computeEnvironmentArn- The Amazon Resource Name (ARN) of the compute environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unmanagedvCpus
ComputeEnvironmentDetail.Builder unmanagedvCpus(Integer unmanagedvCpus)
The maximum number of VCPUs expected to be used for an unmanaged compute environment.
- Parameters:
unmanagedvCpus- The maximum number of VCPUs expected to be used for an unmanaged compute environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ecsClusterArn
ComputeEnvironmentDetail.Builder ecsClusterArn(String ecsClusterArn)
The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the compute environment uses.
- Parameters:
ecsClusterArn- The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the compute environment uses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
ComputeEnvironmentDetail.Builder tags(Map<String,String> tags)
The tags applied to the compute environment.
- Parameters:
tags- The tags applied to the compute environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
ComputeEnvironmentDetail.Builder type(String type)
The type of the compute environment:
MANAGEDorUNMANAGED. For more information, see Compute environments in the Batch User Guide.- Parameters:
type- The type of the compute environment:MANAGEDorUNMANAGED. For more information, see Compute environments in the Batch User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CEType,CEType
-
type
ComputeEnvironmentDetail.Builder type(CEType type)
The type of the compute environment:
MANAGEDorUNMANAGED. For more information, see Compute environments in the Batch User Guide.- Parameters:
type- The type of the compute environment:MANAGEDorUNMANAGED. For more information, see Compute environments in the Batch User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CEType,CEType
-
state
ComputeEnvironmentDetail.Builder state(String state)
The state of the compute environment. The valid values are
ENABLEDorDISABLED.If the state is
ENABLED, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically based on the job queue demand.If the state is
DISABLED, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in aSTARTINGorRUNNINGstate continue to progress normally. Managed compute environments in theDISABLEDstate don't scale out.Compute environments in a
DISABLEDstate may continue to incur billing charges. To prevent additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.When an instance is idle, the instance scales down to the
minvCpusvalue. However, the instance size doesn't change. For example, consider ac5.8xlargeinstance with aminvCpusvalue of4and adesiredvCpusvalue of36. This instance doesn't scale down to ac5.largeinstance.- Parameters:
state- The state of the compute environment. The valid values areENABLEDorDISABLED.If the state is
ENABLED, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically based on the job queue demand.If the state is
DISABLED, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in aSTARTINGorRUNNINGstate continue to progress normally. Managed compute environments in theDISABLEDstate don't scale out.Compute environments in a
DISABLEDstate may continue to incur billing charges. To prevent additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.When an instance is idle, the instance scales down to the
minvCpusvalue. However, the instance size doesn't change. For example, consider ac5.8xlargeinstance with aminvCpusvalue of4and adesiredvCpusvalue of36. This instance doesn't scale down to ac5.largeinstance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CEState,CEState
-
state
ComputeEnvironmentDetail.Builder state(CEState state)
The state of the compute environment. The valid values are
ENABLEDorDISABLED.If the state is
ENABLED, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically based on the job queue demand.If the state is
DISABLED, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in aSTARTINGorRUNNINGstate continue to progress normally. Managed compute environments in theDISABLEDstate don't scale out.Compute environments in a
DISABLEDstate may continue to incur billing charges. To prevent additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.When an instance is idle, the instance scales down to the
minvCpusvalue. However, the instance size doesn't change. For example, consider ac5.8xlargeinstance with aminvCpusvalue of4and adesiredvCpusvalue of36. This instance doesn't scale down to ac5.largeinstance.- Parameters:
state- The state of the compute environment. The valid values areENABLEDorDISABLED.If the state is
ENABLED, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically based on the job queue demand.If the state is
DISABLED, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in aSTARTINGorRUNNINGstate continue to progress normally. Managed compute environments in theDISABLEDstate don't scale out.Compute environments in a
DISABLEDstate may continue to incur billing charges. To prevent additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.When an instance is idle, the instance scales down to the
minvCpusvalue. However, the instance size doesn't change. For example, consider ac5.8xlargeinstance with aminvCpusvalue of4and adesiredvCpusvalue of36. This instance doesn't scale down to ac5.largeinstance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CEState,CEState
-
status
ComputeEnvironmentDetail.Builder status(String status)
The current status of the compute environment (for example,
CREATINGorVALID).
-
status
ComputeEnvironmentDetail.Builder status(CEStatus status)
The current status of the compute environment (for example,
CREATINGorVALID).
-
statusReason
ComputeEnvironmentDetail.Builder statusReason(String statusReason)
A short, human-readable string to provide additional details for the current status of the compute environment.
- Parameters:
statusReason- A short, human-readable string to provide additional details for the current status of the compute environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
computeResources
ComputeEnvironmentDetail.Builder computeResources(ComputeResource computeResources)
The compute resources defined for the compute environment. For more information, see Compute environments in the Batch User Guide.
- Parameters:
computeResources- The compute resources defined for the compute environment. For more information, see Compute environments in the Batch User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
computeResources
default ComputeEnvironmentDetail.Builder computeResources(Consumer<ComputeResource.Builder> computeResources)
The compute resources defined for the compute environment. For more information, see Compute environments in the Batch User Guide.
This is a convenience method that creates an instance of theComputeResource.Builderavoiding the need to create one manually viaComputeResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocomputeResources(ComputeResource).- Parameters:
computeResources- a consumer that will call methods onComputeResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
computeResources(ComputeResource)
-
serviceRole
ComputeEnvironmentDetail.Builder serviceRole(String serviceRole)
The service role that's associated with the compute environment that allows Batch to make calls to Amazon Web Services API operations on your behalf. For more information, see Batch service IAM role in the Batch User Guide.
- Parameters:
serviceRole- The service role that's associated with the compute environment that allows Batch to make calls to Amazon Web Services API operations on your behalf. For more information, see Batch service IAM role in the Batch User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatePolicy
ComputeEnvironmentDetail.Builder updatePolicy(UpdatePolicy updatePolicy)
Specifies the infrastructure update policy for the compute environment. For more information about infrastructure updates, see Updating compute environments in the Batch User Guide.
- Parameters:
updatePolicy- Specifies the infrastructure update policy for the compute environment. For more information about infrastructure updates, see Updating compute environments in the Batch User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatePolicy
default ComputeEnvironmentDetail.Builder updatePolicy(Consumer<UpdatePolicy.Builder> updatePolicy)
Specifies the infrastructure update policy for the compute environment. For more information about infrastructure updates, see Updating compute environments in the Batch User Guide.
This is a convenience method that creates an instance of theUpdatePolicy.Builderavoiding the need to create one manually viaUpdatePolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toupdatePolicy(UpdatePolicy).- Parameters:
updatePolicy- a consumer that will call methods onUpdatePolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
updatePolicy(UpdatePolicy)
-
eksConfiguration
ComputeEnvironmentDetail.Builder eksConfiguration(EksConfiguration eksConfiguration)
The configuration for the Amazon EKS cluster that supports the Batch compute environment. Only specify this parameter if the
containerOrchestrationTypeisEKS.- Parameters:
eksConfiguration- The configuration for the Amazon EKS cluster that supports the Batch compute environment. Only specify this parameter if thecontainerOrchestrationTypeisEKS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eksConfiguration
default ComputeEnvironmentDetail.Builder eksConfiguration(Consumer<EksConfiguration.Builder> eksConfiguration)
The configuration for the Amazon EKS cluster that supports the Batch compute environment. Only specify this parameter if the
This is a convenience method that creates an instance of thecontainerOrchestrationTypeisEKS.EksConfiguration.Builderavoiding the need to create one manually viaEksConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeksConfiguration(EksConfiguration).- Parameters:
eksConfiguration- a consumer that will call methods onEksConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
eksConfiguration(EksConfiguration)
-
containerOrchestrationType
ComputeEnvironmentDetail.Builder containerOrchestrationType(String containerOrchestrationType)
The orchestration type of the compute environment. The valid values are
ECS(default) orEKS.- Parameters:
containerOrchestrationType- The orchestration type of the compute environment. The valid values areECS(default) orEKS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OrchestrationType,OrchestrationType
-
containerOrchestrationType
ComputeEnvironmentDetail.Builder containerOrchestrationType(OrchestrationType containerOrchestrationType)
The orchestration type of the compute environment. The valid values are
ECS(default) orEKS.- Parameters:
containerOrchestrationType- The orchestration type of the compute environment. The valid values areECS(default) orEKS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OrchestrationType,OrchestrationType
-
uuid
ComputeEnvironmentDetail.Builder uuid(String uuid)
Unique identifier for the compute environment.
- Parameters:
uuid- Unique identifier for the compute environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
context
ComputeEnvironmentDetail.Builder context(String context)
Reserved.
- Parameters:
context- Reserved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-