Interface RegisterTaskDefinitionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<RegisterTaskDefinitionResponse.Builder,,RegisterTaskDefinitionResponse> EcsResponse.Builder,SdkBuilder<RegisterTaskDefinitionResponse.Builder,,RegisterTaskDefinitionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
RegisterTaskDefinitionResponse
@Mutable
@NotThreadSafe
public static interface RegisterTaskDefinitionResponse.Builder
extends EcsResponse.Builder, SdkPojo, CopyableBuilder<RegisterTaskDefinitionResponse.Builder,RegisterTaskDefinitionResponse>
-
Method Summary
Modifier and TypeMethodDescriptiontags(Collection<Tag> tags) The list of tags associated with the task definition.tags(Consumer<Tag.Builder>... tags) The list of tags associated with the task definition.The list of tags associated with the task definition.taskDefinition(Consumer<TaskDefinition.Builder> taskDefinition) The full description of the registered task definition.taskDefinition(TaskDefinition taskDefinition) The full description of the registered task definition.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
-
taskDefinition
The full description of the registered task definition.
- Parameters:
taskDefinition- The full description of the registered task definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskDefinition
default RegisterTaskDefinitionResponse.Builder taskDefinition(Consumer<TaskDefinition.Builder> taskDefinition) The full description of the registered task definition.
This is a convenience method that creates an instance of theTaskDefinition.Builderavoiding the need to create one manually viaTaskDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totaskDefinition(TaskDefinition).- Parameters:
taskDefinition- a consumer that will call methods onTaskDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The list of tags associated with the task definition.
- Parameters:
tags- The list of tags associated with the task definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The list of tags associated with the task definition.
- Parameters:
tags- The list of tags associated with the task definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The list of tags associated with the task definition.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-