@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetTaskProtectionResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
GetTaskProtectionResult() |
| Modifier and Type | Method and Description |
|---|---|
GetTaskProtectionResult |
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.
|
GetTaskProtectionResult |
withFailures(Collection<Failure> failures)
Any failures associated with the call.
|
GetTaskProtectionResult |
withFailures(Failure... failures)
Any failures associated with the call.
|
GetTaskProtectionResult |
withProtectedTasks(Collection<ProtectedTask> protectedTasks)
A list of tasks with the following information.
|
GetTaskProtectionResult |
withProtectedTasks(ProtectedTask... protectedTasks)
A list of tasks with the following information.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic 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 GetTaskProtectionResult 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 GetTaskProtectionResult 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 GetTaskProtectionResult 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 GetTaskProtectionResult withFailures(Collection<Failure> failures)
Any failures associated with the call.
failures - Any failures associated with the call.public String toString()
toString in class ObjectObject.toString()public GetTaskProtectionResult clone()