Interface GetTaskProtectionResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetTaskProtectionResponse.Builder,GetTaskProtectionResponse>
,EcsResponse.Builder
,SdkBuilder<GetTaskProtectionResponse.Builder,GetTaskProtectionResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- GetTaskProtectionResponse
public static interface GetTaskProtectionResponse.Builder extends EcsResponse.Builder, SdkPojo, CopyableBuilder<GetTaskProtectionResponse.Builder,GetTaskProtectionResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetTaskProtectionResponse.Builder
failures(Collection<Failure> failures)
Any failures associated with the call.GetTaskProtectionResponse.Builder
failures(Consumer<Failure.Builder>... failures)
Any failures associated with the call.GetTaskProtectionResponse.Builder
failures(Failure... failures)
Any failures associated with the call.GetTaskProtectionResponse.Builder
protectedTasks(Collection<ProtectedTask> protectedTasks)
A list of tasks with the following information.GetTaskProtectionResponse.Builder
protectedTasks(Consumer<ProtectedTask.Builder>... protectedTasks)
A list of tasks with the following information.GetTaskProtectionResponse.Builder
protectedTasks(ProtectedTask... protectedTasks)
A list of tasks with the following information.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ecs.model.EcsResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
protectedTasks
GetTaskProtectionResponse.Builder protectedTasks(Collection<ProtectedTask> protectedTasks)
A list of tasks with the following information.
-
taskArn
: The task ARN. -
protectionEnabled
: The protection status of the task. If scale-in protection is turned on for a task, the value istrue
. Otherwise, it isfalse
. -
expirationDate
: The epoch time when protection for the task will expire.
- Parameters:
protectedTasks
- A list of tasks with the following information.-
taskArn
: The task ARN. -
protectionEnabled
: The protection status of the task. If scale-in protection is turned on for a task, the value istrue
. Otherwise, it isfalse
. -
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.
-
-
protectedTasks
GetTaskProtectionResponse.Builder protectedTasks(ProtectedTask... protectedTasks)
A list of tasks with the following information.
-
taskArn
: The task ARN. -
protectionEnabled
: The protection status of the task. If scale-in protection is turned on for a task, the value istrue
. Otherwise, it isfalse
. -
expirationDate
: The epoch time when protection for the task will expire.
- Parameters:
protectedTasks
- A list of tasks with the following information.-
taskArn
: The task ARN. -
protectionEnabled
: The protection status of the task. If scale-in protection is turned on for a task, the value istrue
. Otherwise, it isfalse
. -
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.
-
-
protectedTasks
GetTaskProtectionResponse.Builder protectedTasks(Consumer<ProtectedTask.Builder>... protectedTasks)
A list of tasks with the following information.
-
taskArn
: The task ARN. -
protectionEnabled
: The protection status of the task. If scale-in protection is turned on for a task, the value istrue
. Otherwise, it isfalse
. -
expirationDate
: The epoch time when protection for the task will expire.
ProtectedTask.Builder
avoiding the need to create one manually viaProtectedTask.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#protectedTasks(List
.) - Parameters:
protectedTasks
- a consumer that will call methods onProtectedTask.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#protectedTasks(java.util.Collection
)
-
-
failures
GetTaskProtectionResponse.Builder failures(Collection<Failure> failures)
Any failures associated with the call.
- Parameters:
failures
- Any failures associated with the call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failures
GetTaskProtectionResponse.Builder failures(Failure... failures)
Any failures associated with the call.
- Parameters:
failures
- Any failures associated with the call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failures
GetTaskProtectionResponse.Builder failures(Consumer<Failure.Builder>... failures)
Any failures associated with the call.
This is a convenience method that creates an instance of theFailure.Builder
avoiding the need to create one manually viaFailure.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#failures(List
.) - Parameters:
failures
- a consumer that will call methods onFailure.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#failures(java.util.Collection
)
-
-