Interface CreateSecondarySubnetResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateSecondarySubnetResponse.Builder,,CreateSecondarySubnetResponse> Ec2Response.Builder,SdkBuilder<CreateSecondarySubnetResponse.Builder,,CreateSecondarySubnetResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateSecondarySubnetResponse
@Mutable
@NotThreadSafe
public static interface CreateSecondarySubnetResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<CreateSecondarySubnetResponse.Builder,CreateSecondarySubnetResponse>
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Unique, case-sensitive identifier to ensure the idempotency of the request.secondarySubnet(Consumer<SecondarySubnet.Builder> secondarySubnet) Information about the secondary subnet.secondarySubnet(SecondarySubnet secondarySubnet) Information about the secondary subnet.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.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
-
secondarySubnet
Information about the secondary subnet.
- Parameters:
secondarySubnet- Information about the secondary subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondarySubnet
default CreateSecondarySubnetResponse.Builder secondarySubnet(Consumer<SecondarySubnet.Builder> secondarySubnet) Information about the secondary subnet.
This is a convenience method that creates an instance of theSecondarySubnet.Builderavoiding the need to create one manually viaSecondarySubnet.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosecondarySubnet(SecondarySubnet).- Parameters:
secondarySubnet- a consumer that will call methods onSecondarySubnet.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.
- Parameters:
clientToken- Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-