public static interface ComputeEnvironmentDetail.Builder extends SdkPojo, CopyableBuilder<ComputeEnvironmentDetail.Builder,ComputeEnvironmentDetail>
Modifier and Type | Method and Description |
---|---|
ComputeEnvironmentDetail.Builder |
computeEnvironmentArn(String computeEnvironmentArn)
The Amazon Resource Name (ARN) of the compute environment.
|
ComputeEnvironmentDetail.Builder |
computeEnvironmentName(String computeEnvironmentName)
The name of the compute environment.
|
ComputeEnvironmentDetail.Builder |
computeResources(ComputeResource computeResources)
The compute resources defined for the compute environment.
|
default ComputeEnvironmentDetail.Builder |
computeResources(Consumer<ComputeResource.Builder> computeResources)
The compute resources defined for the compute environment.
|
ComputeEnvironmentDetail.Builder |
ecsClusterArn(String ecsClusterArn)
The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster used by the compute environment.
|
ComputeEnvironmentDetail.Builder |
serviceRole(String serviceRole)
The service role associated with the compute environment that allows AWS Batch to make calls to AWS API
operations on your behalf.
|
ComputeEnvironmentDetail.Builder |
state(CEState state)
The state of the compute environment.
|
ComputeEnvironmentDetail.Builder |
state(String state)
The state of the compute environment.
|
ComputeEnvironmentDetail.Builder |
status(CEStatus status)
The current status of the compute environment (for example,
CREATING or VALID ). |
ComputeEnvironmentDetail.Builder |
status(String status)
The current status of the compute environment (for example,
CREATING or VALID ). |
ComputeEnvironmentDetail.Builder |
statusReason(String statusReason)
A short, human-readable string to provide additional details about the current status of the compute
environment.
|
ComputeEnvironmentDetail.Builder |
tags(Map<String,String> tags)
The tags applied to the compute environment.
|
ComputeEnvironmentDetail.Builder |
type(CEType type)
The type of the compute environment:
MANAGED or UNMANAGED . |
ComputeEnvironmentDetail.Builder |
type(String type)
The type of the compute environment:
MANAGED or UNMANAGED . |
equalsBySdkFields, sdkFields
copy
applyMutation, build
ComputeEnvironmentDetail.Builder computeEnvironmentName(String computeEnvironmentName)
The name of the compute environment. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
computeEnvironmentName
- The name of the compute environment. Up to 128 letters (uppercase and lowercase), numbers, hyphens,
and underscores are allowed.ComputeEnvironmentDetail.Builder computeEnvironmentArn(String computeEnvironmentArn)
The Amazon Resource Name (ARN) of the compute environment.
computeEnvironmentArn
- The Amazon Resource Name (ARN) of the compute environment.ComputeEnvironmentDetail.Builder ecsClusterArn(String ecsClusterArn)
The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster used by the compute environment.
ecsClusterArn
- The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster used by the compute environment.ComputeEnvironmentDetail.Builder tags(Map<String,String> tags)
The tags applied to the compute environment.
tags
- The tags applied to the compute environment.ComputeEnvironmentDetail.Builder type(String type)
The type of the compute environment: MANAGED
or UNMANAGED
. For more information,
see Compute
Environments in the AWS Batch User Guide.
type
- The type of the compute environment: MANAGED
or UNMANAGED
. For more
information, see Compute
Environments in the AWS Batch User Guide.CEType
,
CEType
ComputeEnvironmentDetail.Builder type(CEType type)
The type of the compute environment: MANAGED
or UNMANAGED
. For more information,
see Compute
Environments in the AWS Batch User Guide.
type
- The type of the compute environment: MANAGED
or UNMANAGED
. For more
information, see Compute
Environments in the AWS Batch User Guide.CEType
,
CEType
ComputeEnvironmentDetail.Builder state(String state)
The state of the compute environment. The valid values are ENABLED
or DISABLED
.
If the state is ENABLED
, then the AWS 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 AWS Batch scheduler doesn't attempt to place jobs within the
environment. Jobs in a STARTING
or RUNNING
state continue to progress normally.
Managed compute environments in the DISABLED
state don't scale out. However, they scale in to
minvCpus
value after instances become idle.
state
- The state of the compute environment. The valid values are ENABLED
or
DISABLED
.
If the state is ENABLED
, then the AWS 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 AWS Batch scheduler doesn't attempt to place jobs
within the environment. Jobs in a STARTING
or RUNNING
state continue to
progress normally. Managed compute environments in the DISABLED
state don't scale out.
However, they scale in to minvCpus
value after instances become idle.
CEState
,
CEState
ComputeEnvironmentDetail.Builder state(CEState state)
The state of the compute environment. The valid values are ENABLED
or DISABLED
.
If the state is ENABLED
, then the AWS 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 AWS Batch scheduler doesn't attempt to place jobs within the
environment. Jobs in a STARTING
or RUNNING
state continue to progress normally.
Managed compute environments in the DISABLED
state don't scale out. However, they scale in to
minvCpus
value after instances become idle.
state
- The state of the compute environment. The valid values are ENABLED
or
DISABLED
.
If the state is ENABLED
, then the AWS 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 AWS Batch scheduler doesn't attempt to place jobs
within the environment. Jobs in a STARTING
or RUNNING
state continue to
progress normally. Managed compute environments in the DISABLED
state don't scale out.
However, they scale in to minvCpus
value after instances become idle.
CEState
,
CEState
ComputeEnvironmentDetail.Builder status(String status)
The current status of the compute environment (for example, CREATING
or VALID
).
ComputeEnvironmentDetail.Builder status(CEStatus status)
The current status of the compute environment (for example, CREATING
or VALID
).
ComputeEnvironmentDetail.Builder statusReason(String statusReason)
A short, human-readable string to provide additional details about the current status of the compute environment.
statusReason
- A short, human-readable string to provide additional details about the current status of the compute
environment.ComputeEnvironmentDetail.Builder computeResources(ComputeResource computeResources)
The compute resources defined for the compute environment. For more information, see Compute Environments in the AWS Batch User Guide.
computeResources
- The compute resources defined for the compute environment. For more information, see Compute
Environments in the AWS Batch User Guide.default ComputeEnvironmentDetail.Builder computeResources(Consumer<ComputeResource.Builder> computeResources)
The compute resources defined for the compute environment. For more information, see Compute Environments in the AWS Batch User Guide.
This is a convenience that creates an instance of theComputeResource.Builder
avoiding the need to
create one manually via ComputeResource.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to computeResources(ComputeResource)
.computeResources
- a consumer that will call methods on ComputeResource.Builder
computeResources(ComputeResource)
ComputeEnvironmentDetail.Builder serviceRole(String serviceRole)
The service role associated with the compute environment that allows AWS Batch to make calls to AWS API operations on your behalf. For more information, see AWS Batch service IAM role in the AWS Batch User Guide.
serviceRole
- The service role associated with the compute environment that allows AWS Batch to make calls to AWS
API operations on your behalf. For more information, see AWS Batch service IAM
role in the AWS Batch User Guide.Copyright © 2021. All rights reserved.