JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.ecs.model

Class UpdateTaskProtectionResult

    • Constructor Detail

      • UpdateTaskProtectionResult

        public UpdateTaskProtectionResult()
    • Method Detail

      • getProtectedTasks

        public List<ProtectedTask> getProtectedTasks()

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

      • setProtectedTasks

        public void setProtectedTasks(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.

      • withProtectedTasks

        public UpdateTaskProtectionResult withProtectedTasks(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.

        NOTE: This method appends the values to the existing list (if any). Use setProtectedTasks(java.util.Collection) or withProtectedTasks(java.util.Collection) if you want to override the existing values.

        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.
      • withProtectedTasks

        public UpdateTaskProtectionResult withProtectedTasks(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.
      • getFailures

        public List<Failure> getFailures()

        Any failures associated with the call.

        Returns:
        Any failures associated with the call.
      • setFailures

        public void setFailures(Collection<Failure> failures)

        Any failures associated with the call.

        Parameters:
        failures - Any failures associated with the call.
      • withFailures

        public UpdateTaskProtectionResult withFailures(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.
      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /