Interface StopTaskResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<StopTaskResponse.Builder,StopTaskResponse>,EcsResponse.Builder,SdkBuilder<StopTaskResponse.Builder,StopTaskResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- StopTaskResponse
public static interface StopTaskResponse.Builder extends EcsResponse.Builder, SdkPojo, CopyableBuilder<StopTaskResponse.Builder,StopTaskResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StopTaskResponse.Buildertask(Consumer<Task.Builder> task)The task that was stopped.StopTaskResponse.Buildertask(Task task)The task that was stopped.-
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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
task
StopTaskResponse.Builder task(Task task)
The task that was stopped.
- Parameters:
task- The task that was stopped.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
task
default StopTaskResponse.Builder task(Consumer<Task.Builder> task)
The task that was stopped.
This is a convenience method that creates an instance of theTask.Builderavoiding the need to create one manually viaTask.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totask(Task).- Parameters:
task- a consumer that will call methods onTask.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
task(Task)
-
-