Interface CreateNatGatewayResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateNatGatewayResponse.Builder,CreateNatGatewayResponse>
,Ec2Response.Builder
,SdkBuilder<CreateNatGatewayResponse.Builder,CreateNatGatewayResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- CreateNatGatewayResponse
public static interface CreateNatGatewayResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<CreateNatGatewayResponse.Builder,CreateNatGatewayResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateNatGatewayResponse.Builder
clientToken(String clientToken)
Unique, case-sensitive identifier to ensure the idempotency of the request.default CreateNatGatewayResponse.Builder
natGateway(Consumer<NatGateway.Builder> natGateway)
Information about the NAT gateway.CreateNatGatewayResponse.Builder
natGateway(NatGateway natGateway)
Information about the NAT gateway.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.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
-
clientToken
CreateNatGatewayResponse.Builder clientToken(String 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.
-
natGateway
CreateNatGatewayResponse.Builder natGateway(NatGateway natGateway)
Information about the NAT gateway.
- Parameters:
natGateway
- Information about the NAT gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
natGateway
default CreateNatGatewayResponse.Builder natGateway(Consumer<NatGateway.Builder> natGateway)
Information about the NAT gateway.
This is a convenience method that creates an instance of theNatGateway.Builder
avoiding the need to create one manually viaNatGateway.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonatGateway(NatGateway)
.- Parameters:
natGateway
- a consumer that will call methods onNatGateway.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
natGateway(NatGateway)
-
-