Interface StartTaskResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<StartTaskResponse.Builder,StartTaskResponse>
,EcsResponse.Builder
,SdkBuilder<StartTaskResponse.Builder,StartTaskResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- StartTaskResponse
public static interface StartTaskResponse.Builder extends EcsResponse.Builder, SdkPojo, CopyableBuilder<StartTaskResponse.Builder,StartTaskResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StartTaskResponse.Builder
failures(Collection<Failure> failures)
Any failures associated with the call.StartTaskResponse.Builder
failures(Consumer<Failure.Builder>... failures)
Any failures associated with the call.StartTaskResponse.Builder
failures(Failure... failures)
Any failures associated with the call.StartTaskResponse.Builder
tasks(Collection<Task> tasks)
A full description of the tasks that were started.StartTaskResponse.Builder
tasks(Consumer<Task.Builder>... tasks)
A full description of the tasks that were started.StartTaskResponse.Builder
tasks(Task... tasks)
A full description of the tasks that were started.-
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
-
tasks
StartTaskResponse.Builder tasks(Collection<Task> tasks)
A full description of the tasks that were started. Each task that was successfully placed on your container instances is described.
- Parameters:
tasks
- A full description of the tasks that were started. Each task that was successfully placed on your container instances is described.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tasks
StartTaskResponse.Builder tasks(Task... tasks)
A full description of the tasks that were started. Each task that was successfully placed on your container instances is described.
- Parameters:
tasks
- A full description of the tasks that were started. Each task that was successfully placed on your container instances is described.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tasks
StartTaskResponse.Builder tasks(Consumer<Task.Builder>... tasks)
A full description of the tasks that were started. Each task that was successfully placed on your container instances is described.
This is a convenience method that creates an instance of theTask.Builder
avoiding the need to create one manually viaTask.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#tasks(List
.) - Parameters:
tasks
- 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:
#tasks(java.util.Collection
)
-
failures
StartTaskResponse.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
StartTaskResponse.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
StartTaskResponse.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
)
-
-