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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProtectedTask.Builder
expirationDate(Instant expirationDate)
The epoch time when protection for the task will expire.ProtectedTask.Builder
protectionEnabled(Boolean protectionEnabled)
The protection status of the task.ProtectedTask.Builder
taskArn(String taskArn)
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 Detail
-
taskArn
ProtectedTask.Builder taskArn(String 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
ProtectedTask.Builder protectionEnabled(Boolean 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
ProtectedTask.Builder expirationDate(Instant 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.
-
-