@Generated(value="software.amazon.awssdk:codegen") public final class ProtectedTask extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ProtectedTask.Builder,ProtectedTask>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ProtectedTask.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ProtectedTask.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Instant |
expirationDate()
The epoch time when protection for the task will expire.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
protectionEnabled()
The protection status of the task.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ProtectedTask.Builder> |
serializableBuilderClass() |
String |
taskArn()
The task ARN.
|
ProtectedTask.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String taskArn()
The task ARN.
public final Boolean protectionEnabled()
The protection status of the task. If scale-in protection is enabled for a task, the value is true.
Otherwise, it is false.
true. Otherwise, it is false.public final Instant expirationDate()
The epoch time when protection for the task will expire.
public ProtectedTask.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ProtectedTask.Builder,ProtectedTask>public static ProtectedTask.Builder builder()
public static Class<? extends ProtectedTask.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.