Interface InstanceTarget.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceTarget.Builder,,InstanceTarget> SdkBuilder<InstanceTarget.Builder,,InstanceTarget> SdkPojo
- Enclosing class:
InstanceTarget
-
Method Summary
Modifier and TypeMethodDescriptiondeploymentId(String deploymentId) The unique ID of a deployment.instanceLabel(String instanceLabel) A label that identifies whether the instance is an original target (BLUE) or a replacement target (GREEN).instanceLabel(TargetLabel instanceLabel) A label that identifies whether the instance is an original target (BLUE) or a replacement target (GREEN).lastUpdatedAt(Instant lastUpdatedAt) The date and time when the target instance was updated by a deployment.lifecycleEvents(Collection<LifecycleEvent> lifecycleEvents) The lifecycle events of the deployment to this target instance.lifecycleEvents(Consumer<LifecycleEvent.Builder>... lifecycleEvents) The lifecycle events of the deployment to this target instance.lifecycleEvents(LifecycleEvent... lifecycleEvents) The lifecycle events of the deployment to this target instance.The status an EC2/On-premises deployment's target instance.status(TargetStatus status) The status an EC2/On-premises deployment's target instance.The Amazon Resource Name (ARN) of the target.The unique ID of a deployment target that has a type ofinstanceTarget.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
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:
-
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:
-
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
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
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
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 tolifecycleEvents(List<LifecycleEvent>).- 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:
-
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:
-
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:
-