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 Details

    • 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 of instanceTarget.
      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

      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

      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 the LifecycleEvent.Builder avoiding the need to create one manually via LifecycleEvent.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to lifecycleEvents(List<LifecycleEvent>).

      Parameters:
      lifecycleEvents - a consumer that will call methods on LifecycleEvent.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • 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: