public static interface InstanceTarget.Builder extends SdkPojo, CopyableBuilder<InstanceTarget.Builder,InstanceTarget>
Modifier and Type | Method and Description |
---|---|
InstanceTarget.Builder |
deploymentId(String deploymentId)
The unique ID of a deployment.
|
InstanceTarget.Builder |
instanceLabel(String instanceLabel)
A label that identifies whether the instance is an original target (
BLUE ) or a replacement
target (GREEN ). |
InstanceTarget.Builder |
instanceLabel(TargetLabel instanceLabel)
A label that identifies whether the instance is an original target (
BLUE ) or a replacement
target (GREEN ). |
InstanceTarget.Builder |
lastUpdatedAt(Instant lastUpdatedAt)
The date and time when the target instance was updated by a deployment.
|
InstanceTarget.Builder |
lifecycleEvents(Collection<LifecycleEvent> lifecycleEvents)
The lifecycle events of the deployment to this target instance.
|
InstanceTarget.Builder |
lifecycleEvents(Consumer<LifecycleEvent.Builder>... lifecycleEvents)
The lifecycle events of the deployment to this target instance.
|
InstanceTarget.Builder |
lifecycleEvents(LifecycleEvent... lifecycleEvents)
The lifecycle events of the deployment to this target instance.
|
InstanceTarget.Builder |
status(String status)
The status an EC2/On-premises deployment's target instance.
|
InstanceTarget.Builder |
status(TargetStatus status)
The status an EC2/On-premises deployment's target instance.
|
InstanceTarget.Builder |
targetArn(String targetArn)
The ARN of the target.
|
InstanceTarget.Builder |
targetId(String targetId)
The unique ID of a deployment target that has a type of
instanceTarget . |
copy
applyMutation, build
InstanceTarget.Builder deploymentId(String deploymentId)
The unique ID of a deployment.
deploymentId
- The unique ID of a deployment.InstanceTarget.Builder targetId(String targetId)
The unique ID of a deployment target that has a type of instanceTarget
.
targetId
- The unique ID of a deployment target that has a type of instanceTarget
.InstanceTarget.Builder targetArn(String targetArn)
The ARN of the target.
targetArn
- The ARN of the target.InstanceTarget.Builder status(String status)
The status an EC2/On-premises deployment's target instance.
status
- The status an EC2/On-premises deployment's target instance.TargetStatus
,
TargetStatus
InstanceTarget.Builder status(TargetStatus status)
The status an EC2/On-premises deployment's target instance.
status
- The status an EC2/On-premises deployment's target instance.TargetStatus
,
TargetStatus
InstanceTarget.Builder lastUpdatedAt(Instant lastUpdatedAt)
The date and time when the target instance was updated by a deployment.
lastUpdatedAt
- The date and time when the target instance was updated by a deployment.InstanceTarget.Builder lifecycleEvents(Collection<LifecycleEvent> lifecycleEvents)
The lifecycle events of the deployment to this target instance.
lifecycleEvents
- The lifecycle events of the deployment to this target instance.InstanceTarget.Builder lifecycleEvents(LifecycleEvent... lifecycleEvents)
The lifecycle events of the deployment to this target instance.
lifecycleEvents
- The lifecycle events of the deployment to this target instance.InstanceTarget.Builder lifecycleEvents(Consumer<LifecycleEvent.Builder>... lifecycleEvents)
The lifecycle events of the deployment to this target instance.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #lifecycleEvents(List)
.lifecycleEvents
- a consumer that will call methods on List.Builder
#lifecycleEvents(List)
InstanceTarget.Builder instanceLabel(String instanceLabel)
A label that identifies whether the instance is an original target (BLUE
) or a replacement
target (GREEN
).
instanceLabel
- A label that identifies whether the instance is an original target (BLUE
) or a
replacement target (GREEN
).TargetLabel
,
TargetLabel
InstanceTarget.Builder instanceLabel(TargetLabel instanceLabel)
A label that identifies whether the instance is an original target (BLUE
) or a replacement
target (GREEN
).
instanceLabel
- A label that identifies whether the instance is an original target (BLUE
) or a
replacement target (GREEN
).TargetLabel
,
TargetLabel
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.