Interface ProtectedTask.Builder

    • Method Detail

      • taskArn

        ProtectedTask.Builder taskArn​(String taskArn)

        The task ARN.

        Parameters:
        taskArn - The task ARN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • protectionEnabled

        ProtectedTask.Builder protectionEnabled​(Boolean protectionEnabled)

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

        Parameters:
        protectionEnabled - The protection status of the task. If scale-in protection is on for a task, the value is true. Otherwise, it is false.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • expirationDate

        ProtectedTask.Builder expirationDate​(Instant expirationDate)

        The epoch time when protection for the task will expire.

        Parameters:
        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.