Interface ProtectedTask.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ProtectedTask.Builder,
,ProtectedTask> SdkBuilder<ProtectedTask.Builder,
,ProtectedTask> SdkPojo
- Enclosing class:
ProtectedTask
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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.
-