Interface CreateCustomerGatewayRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateCustomerGatewayRequest.Builder,CreateCustomerGatewayRequest>,Ec2Request.Builder,SdkBuilder<CreateCustomerGatewayRequest.Builder,CreateCustomerGatewayRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateCustomerGatewayRequest
@Mutable @NotThreadSafe public static interface CreateCustomerGatewayRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreateCustomerGatewayRequest.Builder,CreateCustomerGatewayRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateCustomerGatewayRequest.BuilderbgpAsn(Integer bgpAsn)For customer gateway devices that support BGP, specify the device's ASN.CreateCustomerGatewayRequest.BuilderbgpAsnExtended(Long bgpAsnExtended)For customer gateway devices that support BGP, specify the device's ASN.CreateCustomerGatewayRequest.BuildercertificateArn(String certificateArn)The Amazon Resource Name (ARN) for the customer gateway certificate.CreateCustomerGatewayRequest.BuilderdeviceName(String deviceName)A name for the customer gateway device.CreateCustomerGatewayRequest.BuilderdryRun(Boolean dryRun)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.CreateCustomerGatewayRequest.BuilderipAddress(String ipAddress)IPv4 address for the customer gateway device's outside interface.CreateCustomerGatewayRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateCustomerGatewayRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateCustomerGatewayRequest.BuilderpublicIp(String publicIp)This member has been deprecated. The Internet-routable IP address for the customer gateway's outside interface.CreateCustomerGatewayRequest.BuildertagSpecifications(Collection<TagSpecification> tagSpecifications)The tags to apply to the customer gateway.CreateCustomerGatewayRequest.BuildertagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)The tags to apply to the customer gateway.CreateCustomerGatewayRequest.BuildertagSpecifications(TagSpecification... tagSpecifications)The tags to apply to the customer gateway.CreateCustomerGatewayRequest.Buildertype(String type)The type of VPN connection that this customer gateway supports (ipsec.1).CreateCustomerGatewayRequest.Buildertype(GatewayType type)The type of VPN connection that this customer gateway supports (ipsec.1).-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
bgpAsn
CreateCustomerGatewayRequest.Builder bgpAsn(Integer bgpAsn)
For customer gateway devices that support BGP, specify the device's ASN. You must specify either
BgpAsnorBgpAsnExtendedwhen creating the customer gateway. If the ASN is larger than2,147,483,647, you must useBgpAsnExtended.Default: 65000
Valid values:
1to2,147,483,647- Parameters:
bgpAsn- For customer gateway devices that support BGP, specify the device's ASN. You must specify eitherBgpAsnorBgpAsnExtendedwhen creating the customer gateway. If the ASN is larger than2,147,483,647, you must useBgpAsnExtended.Default: 65000
Valid values:
1to2,147,483,647- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publicIp
CreateCustomerGatewayRequest.Builder publicIp(String publicIp)
This member has been deprecated. The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
- Parameters:
publicIp- This member has been deprecated. The Internet-routable IP address for the customer gateway's outside interface. The address must be static.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificateArn
CreateCustomerGatewayRequest.Builder certificateArn(String certificateArn)
The Amazon Resource Name (ARN) for the customer gateway certificate.
- Parameters:
certificateArn- The Amazon Resource Name (ARN) for the customer gateway certificate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
CreateCustomerGatewayRequest.Builder type(String type)
The type of VPN connection that this customer gateway supports (
ipsec.1).- Parameters:
type- The type of VPN connection that this customer gateway supports (ipsec.1).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GatewayType,GatewayType
-
type
CreateCustomerGatewayRequest.Builder type(GatewayType type)
The type of VPN connection that this customer gateway supports (
ipsec.1).- Parameters:
type- The type of VPN connection that this customer gateway supports (ipsec.1).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GatewayType,GatewayType
-
tagSpecifications
CreateCustomerGatewayRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the customer gateway.
- Parameters:
tagSpecifications- The tags to apply to the customer gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateCustomerGatewayRequest.Builder tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the customer gateway.
- Parameters:
tagSpecifications- The tags to apply to the customer gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateCustomerGatewayRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to apply to the customer gateway.
This is a convenience method that creates an instance of theTagSpecification.Builderavoiding the need to create one manually viaTagSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tagSpecifications(List.) - Parameters:
tagSpecifications- a consumer that will call methods onTagSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tagSpecifications(java.util.Collection)
-
deviceName
CreateCustomerGatewayRequest.Builder deviceName(String deviceName)
A name for the customer gateway device.
Length Constraints: Up to 255 characters.
- Parameters:
deviceName- A name for the customer gateway device.Length Constraints: Up to 255 characters.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipAddress
CreateCustomerGatewayRequest.Builder ipAddress(String ipAddress)
IPv4 address for the customer gateway device's outside interface. The address must be static. If
OutsideIpAddressTypein your VPN connection options is set toPrivateIpv4, you can use an RFC6598 or RFC1918 private IPv4 address. IfOutsideIpAddressTypeis set toPublicIpv4, you can use a public IPv4 address.- Parameters:
ipAddress- IPv4 address for the customer gateway device's outside interface. The address must be static. IfOutsideIpAddressTypein your VPN connection options is set toPrivateIpv4, you can use an RFC6598 or RFC1918 private IPv4 address. IfOutsideIpAddressTypeis set toPublicIpv4, you can use a public IPv4 address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bgpAsnExtended
CreateCustomerGatewayRequest.Builder bgpAsnExtended(Long bgpAsnExtended)
For customer gateway devices that support BGP, specify the device's ASN. You must specify either
BgpAsnorBgpAsnExtendedwhen creating the customer gateway. If the ASN is larger than2,147,483,647, you must useBgpAsnExtended.Valid values:
2,147,483,648to4,294,967,295- Parameters:
bgpAsnExtended- For customer gateway devices that support BGP, specify the device's ASN. You must specify eitherBgpAsnorBgpAsnExtendedwhen creating the customer gateway. If the ASN is larger than2,147,483,647, you must useBgpAsnExtended.Valid values:
2,147,483,648to4,294,967,295- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
CreateCustomerGatewayRequest.Builder dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.- Parameters:
dryRun- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation. Otherwise, it isUnauthorizedOperation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateCustomerGatewayRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateCustomerGatewayRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-