Interface UpdateTaskProtectionResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<UpdateTaskProtectionResponse.Builder,UpdateTaskProtectionResponse>, EcsResponse.Builder, SdkBuilder<UpdateTaskProtectionResponse.Builder,UpdateTaskProtectionResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
UpdateTaskProtectionResponse

public static interface UpdateTaskProtectionResponse.Builder extends EcsResponse.Builder, SdkPojo, CopyableBuilder<UpdateTaskProtectionResponse.Builder,UpdateTaskProtectionResponse>
  • Method Details

    • protectedTasks

      A list of tasks with the following information.

      • taskArn: The task ARN.

      • protectionEnabled: The protection status of the task. If scale-in protection is turned on for a task, the value is true. Otherwise, it is false.

      • expirationDate: The epoch time when protection for the task will expire.

      Parameters:
      protectedTasks - A list of tasks with the following information.

      • taskArn: The task ARN.

      • protectionEnabled: The protection status of the task. If scale-in protection is turned on for a task, the value is true. Otherwise, it is false.

      • expirationDate: The epoch time when protection for the task will expire.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • protectedTasks

      UpdateTaskProtectionResponse.Builder protectedTasks(ProtectedTask... protectedTasks)

      A list of tasks with the following information.

      • taskArn: The task ARN.

      • protectionEnabled: The protection status of the task. If scale-in protection is turned on for a task, the value is true. Otherwise, it is false.

      • expirationDate: The epoch time when protection for the task will expire.

      Parameters:
      protectedTasks - A list of tasks with the following information.

      • taskArn: The task ARN.

      • protectionEnabled: The protection status of the task. If scale-in protection is turned on for a task, the value is true. Otherwise, it is false.

      • expirationDate: The epoch time when protection for the task will expire.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • protectedTasks

      A list of tasks with the following information.

      • taskArn: The task ARN.

      • protectionEnabled: The protection status of the task. If scale-in protection is turned on for a task, the value is true. Otherwise, it is false.

      • expirationDate: The epoch time when protection for the task will expire.

      This is a convenience method that creates an instance of the ProtectedTask.Builder avoiding the need to create one manually via ProtectedTask.builder().

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

      Parameters:
      protectedTasks - a consumer that will call methods on ProtectedTask.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • failures

      Any failures associated with the call.

      Parameters:
      failures - Any failures associated with the call.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failures

      Any failures associated with the call.

      Parameters:
      failures - Any failures associated with the call.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failures

      Any failures associated with the call.

      This is a convenience method that creates an instance of the Failure.Builder avoiding the need to create one manually via Failure.builder().

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

      Parameters:
      failures - a consumer that will call methods on Failure.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: