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 |
type(CEType type)
The type of the compute environment.
|
ComputeEnvironmentDetail.Builder |
type(String type)
The type of the compute environment.
|
copy
applyMutation, build
ComputeEnvironmentDetail.Builder computeEnvironmentName(String computeEnvironmentName)
The name of the compute environment.
computeEnvironmentName
- The name of the compute environment.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 type(String type)
The type of the compute environment.
ComputeEnvironmentDetail.Builder type(CEType type)
The type of the compute environment.
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 does not 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 do not 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 does not 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 do not 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 does not 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 do not 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 does not 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 do not 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.
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.
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.
serviceRole
- The service role associated with the compute environment that allows AWS Batch to make calls to AWS
API operations on your behalf.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.