Interface UpdateTaskProtectionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<UpdateTaskProtectionResponse.Builder,
,UpdateTaskProtectionResponse> EcsResponse.Builder
,SdkBuilder<UpdateTaskProtectionResponse.Builder,
,UpdateTaskProtectionResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
UpdateTaskProtectionResponse
-
Method Summary
Modifier and TypeMethodDescriptionfailures
(Collection<Failure> failures) Any failures associated with the call.failures
(Consumer<Failure.Builder>... failures) Any failures associated with the call.Any failures associated with the call.protectedTasks
(Collection<ProtectedTask> protectedTasks) A list of tasks with the following information.protectedTasks
(Consumer<ProtectedTask.Builder>... protectedTasks) A list of tasks with the following information.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 Details
-
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
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
UpdateTaskProtectionResponse.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 toprotectedTasks(List<ProtectedTask>)
.- 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:
-
-
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
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
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 tofailures(List<Failure>)
.- 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:
-