@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateTaskProtectionResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
UpdateTaskProtectionResult () |
| Modifier and Type | Method and Description |
|---|---|
UpdateTaskProtectionResult |
clone () |
boolean |
equals (Object obj) |
List<Failure> |
getFailures ()
Any failures associated with the call.
|
List<ProtectedTask> |
getProtectedTasks ()
A list of tasks with the following information.
|
int |
hashCode () |
void |
setFailures (Collection<Failure> failures)
Any failures associated with the call.
|
void |
setProtectedTasks (Collection<ProtectedTask> protectedTasks)
A list of tasks with the following information.
|
String |
toString ()
Returns a string representation of this object.
|
UpdateTaskProtectionResult |
withFailures (Collection<Failure> failures)
Any failures associated with the call.
|
UpdateTaskProtectionResult |
withFailures (Failure... failures)
Any failures associated with the call.
|
UpdateTaskProtectionResult |
withProtectedTasks (Collection<ProtectedTask> protectedTasks)
A list of tasks with the following information.
|
UpdateTaskProtectionResult |
withProtectedTasks (ProtectedTask... protectedTasks)
A list of tasks with the following information.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata public UpdateTaskProtectionResult()
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.
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.
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.
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.
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.
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.
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.
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.
public List<Failure> getFailures()
Any failures associated with the call.
public void setFailures(Collection<Failure> failures)
Any failures associated with the call.
failures - Any failures associated with the call.public UpdateTaskProtectionResult withFailures(Failure... failures)
Any failures associated with the call.
NOTE: This method appends the values to the existing list (if any). Use
setFailures(java.util.Collection) or withFailures(java.util.Collection) if you want to override
the existing values.
failures - Any failures associated with the call.public UpdateTaskProtectionResult withFailures(Collection<Failure> failures)
Any failures associated with the call.
failures - Any failures associated with the call.public String toString()
toString in class Object Object.toString() public UpdateTaskProtectionResult clone()