Interface GetTaskProtectionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetTaskProtectionResponse.Builder,,GetTaskProtectionResponse> EcsResponse.Builder,SdkBuilder<GetTaskProtectionResponse.Builder,,GetTaskProtectionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetTaskProtectionResponse
-
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
copyMethods inherited from interface software.amazon.awssdk.services.ecs.model.EcsResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods 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
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.Builderavoiding the need to create one manually viaProtectedTask.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaFailure.builder().When the
Consumercompletes,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:
-