Interface InstanceTarget.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceTarget.Builder,InstanceTarget>,SdkBuilder<InstanceTarget.Builder,InstanceTarget>,SdkPojo
- Enclosing class:
- InstanceTarget
public static interface InstanceTarget.Builder extends SdkPojo, CopyableBuilder<InstanceTarget.Builder,InstanceTarget>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstanceTarget.BuilderdeploymentId(String deploymentId)The unique ID of a deployment.InstanceTarget.BuilderinstanceLabel(String instanceLabel)A label that identifies whether the instance is an original target (BLUE) or a replacement target (GREEN).InstanceTarget.BuilderinstanceLabel(TargetLabel instanceLabel)A label that identifies whether the instance is an original target (BLUE) or a replacement target (GREEN).InstanceTarget.BuilderlastUpdatedAt(Instant lastUpdatedAt)The date and time when the target instance was updated by a deployment.InstanceTarget.BuilderlifecycleEvents(Collection<LifecycleEvent> lifecycleEvents)The lifecycle events of the deployment to this target instance.InstanceTarget.BuilderlifecycleEvents(Consumer<LifecycleEvent.Builder>... lifecycleEvents)The lifecycle events of the deployment to this target instance.InstanceTarget.BuilderlifecycleEvents(LifecycleEvent... lifecycleEvents)The lifecycle events of the deployment to this target instance.InstanceTarget.Builderstatus(String status)The status an EC2/On-premises deployment's target instance.InstanceTarget.Builderstatus(TargetStatus status)The status an EC2/On-premises deployment's target instance.InstanceTarget.BuildertargetArn(String targetArn)The Amazon Resource Name (ARN) of the target.InstanceTarget.BuildertargetId(String targetId)The unique ID of a deployment target that has a type ofinstanceTarget.-
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, sdkFields
-
-
-
-
Method Detail
-
deploymentId
InstanceTarget.Builder deploymentId(String deploymentId)
The unique ID of a deployment.
- Parameters:
deploymentId- The unique ID of a deployment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetId
InstanceTarget.Builder targetId(String targetId)
The unique ID of a deployment target that has a type of
instanceTarget.- Parameters:
targetId- The unique ID of a deployment target that has a type ofinstanceTarget.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetArn
InstanceTarget.Builder targetArn(String targetArn)
The Amazon Resource Name (ARN) of the target.
- Parameters:
targetArn- The Amazon Resource Name (ARN) of the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
InstanceTarget.Builder status(String status)
The status an EC2/On-premises deployment's target instance.
- Parameters:
status- The status an EC2/On-premises deployment's target instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TargetStatus,TargetStatus
-
status
InstanceTarget.Builder status(TargetStatus status)
The status an EC2/On-premises deployment's target instance.
- Parameters:
status- The status an EC2/On-premises deployment's target instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TargetStatus,TargetStatus
-
lastUpdatedAt
InstanceTarget.Builder lastUpdatedAt(Instant lastUpdatedAt)
The date and time when the target instance was updated by a deployment.
- Parameters:
lastUpdatedAt- The date and time when the target instance was updated by a deployment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecycleEvents
InstanceTarget.Builder lifecycleEvents(Collection<LifecycleEvent> lifecycleEvents)
The lifecycle events of the deployment to this target instance.
- Parameters:
lifecycleEvents- The lifecycle events of the deployment to this target instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecycleEvents
InstanceTarget.Builder lifecycleEvents(LifecycleEvent... lifecycleEvents)
The lifecycle events of the deployment to this target instance.
- Parameters:
lifecycleEvents- The lifecycle events of the deployment to this target instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecycleEvents
InstanceTarget.Builder lifecycleEvents(Consumer<LifecycleEvent.Builder>... lifecycleEvents)
The lifecycle events of the deployment to this target instance.
This is a convenience method that creates an instance of theLifecycleEvent.Builderavoiding the need to create one manually viaLifecycleEvent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#lifecycleEvents(List.) - Parameters:
lifecycleEvents- a consumer that will call methods onLifecycleEvent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#lifecycleEvents(java.util.Collection)
-
instanceLabel
InstanceTarget.Builder instanceLabel(String instanceLabel)
A label that identifies whether the instance is an original target (
BLUE) or a replacement target (GREEN).- Parameters:
instanceLabel- A label that identifies whether the instance is an original target (BLUE) or a replacement target (GREEN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TargetLabel,TargetLabel
-
instanceLabel
InstanceTarget.Builder instanceLabel(TargetLabel instanceLabel)
A label that identifies whether the instance is an original target (
BLUE) or a replacement target (GREEN).- Parameters:
instanceLabel- A label that identifies whether the instance is an original target (BLUE) or a replacement target (GREEN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TargetLabel,TargetLabel
-
-