Interface GetTaskProtectionResponse.Builder

    • Method Detail

      • protectedTasks

        GetTaskProtectionResponse.Builder protectedTasks​(Collection<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

        GetTaskProtectionResponse.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

        GetTaskProtectionResponse.Builder protectedTasks​(Consumer<ProtectedTask.Builder>... 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).

        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:
        #protectedTasks(java.util.Collection)
      • failures

        GetTaskProtectionResponse.Builder failures​(Collection<Failure> 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

        GetTaskProtectionResponse.Builder failures​(Failure... 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.