Interface ProtectedTask.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ProtectedTask.Builder,,ProtectedTask> SdkBuilder<ProtectedTask.Builder,,ProtectedTask> SdkPojo
- Enclosing class:
ProtectedTask
@Mutable
@NotThreadSafe
public static interface ProtectedTask.Builder
extends SdkPojo, CopyableBuilder<ProtectedTask.Builder,ProtectedTask>
-
Method Summary
Modifier and TypeMethodDescriptionexpirationDate(Instant expirationDate) The epoch time when protection for the task will expire.protectionEnabled(Boolean protectionEnabled) The protection status of the task.The task ARN.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
taskArn
The task ARN.
- Parameters:
taskArn- The task ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protectionEnabled
The protection status of the task. If scale-in protection is on for a task, the value is
true. Otherwise, it isfalse.- Parameters:
protectionEnabled- The protection status of the task. If scale-in protection is on for a task, the value istrue. Otherwise, it isfalse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expirationDate
The epoch time when protection for the task will expire.
- Parameters:
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.
-