@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ProtectedTask extends Object implements Serializable, Cloneable, StructuredPojo
An object representing the protection status details for a task. You can set the protection status with the UpdateTaskProtection API and get the status of tasks with the GetTaskProtection API.
Constructor and Description |
---|
ProtectedTask() |
Modifier and Type | Method and Description |
---|---|
ProtectedTask |
clone() |
boolean |
equals(Object obj) |
Date |
getExpirationDate()
The epoch time when protection for the task will expire.
|
Boolean |
getProtectionEnabled()
The protection status of the task.
|
String |
getTaskArn()
The task ARN.
|
int |
hashCode() |
Boolean |
isProtectionEnabled()
The protection status of the task.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setExpirationDate(Date expirationDate)
The epoch time when protection for the task will expire.
|
void |
setProtectionEnabled(Boolean protectionEnabled)
The protection status of the task.
|
void |
setTaskArn(String taskArn)
The task ARN.
|
String |
toString()
Returns a string representation of this object.
|
ProtectedTask |
withExpirationDate(Date expirationDate)
The epoch time when protection for the task will expire.
|
ProtectedTask |
withProtectionEnabled(Boolean protectionEnabled)
The protection status of the task.
|
ProtectedTask |
withTaskArn(String taskArn)
The task ARN.
|
public void setTaskArn(String taskArn)
The task ARN.
taskArn
- The task ARN.public String getTaskArn()
The task ARN.
public ProtectedTask withTaskArn(String taskArn)
The task ARN.
taskArn
- The task ARN.public void setProtectionEnabled(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
.
protectionEnabled
- The protection status of the task. If scale-in protection is on for a task, the value is true
. Otherwise, it is false
.public Boolean getProtectionEnabled()
The protection status of the task. If scale-in protection is on for a task, the value is true
.
Otherwise, it is false
.
true
. Otherwise, it is false
.public ProtectedTask withProtectionEnabled(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
.
protectionEnabled
- The protection status of the task. If scale-in protection is on for a task, the value is true
. Otherwise, it is false
.public Boolean isProtectionEnabled()
The protection status of the task. If scale-in protection is on for a task, the value is true
.
Otherwise, it is false
.
true
. Otherwise, it is false
.public void setExpirationDate(Date expirationDate)
The epoch time when protection for the task will expire.
expirationDate
- The epoch time when protection for the task will expire.public Date getExpirationDate()
The epoch time when protection for the task will expire.
public ProtectedTask withExpirationDate(Date expirationDate)
The epoch time when protection for the task will expire.
expirationDate
- The epoch time when protection for the task will expire.public String toString()
toString
in class Object
Object.toString()
public ProtectedTask clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.