Interface CreateTransitGatewayConnectPeerRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateTransitGatewayConnectPeerRequest.Builder,
,CreateTransitGatewayConnectPeerRequest> Ec2Request.Builder
,SdkBuilder<CreateTransitGatewayConnectPeerRequest.Builder,
,CreateTransitGatewayConnectPeerRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateTransitGatewayConnectPeerRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe BGP options for the Connect peer.bgpOptions
(TransitGatewayConnectRequestBgpOptions bgpOptions) The BGP options for the Connect peer.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.insideCidrBlocks
(String... insideCidrBlocks) The range of inside IP addresses that are used for BGP peering.insideCidrBlocks
(Collection<String> insideCidrBlocks) The range of inside IP addresses that are used for BGP peering.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.peerAddress
(String peerAddress) The peer IP address (GRE outer IP address) on the appliance side of the Connect peer.tagSpecifications
(Collection<TagSpecification> tagSpecifications) The tags to apply to the Connect peer.tagSpecifications
(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to apply to the Connect peer.tagSpecifications
(TagSpecification... tagSpecifications) The tags to apply to the Connect peer.transitGatewayAddress
(String transitGatewayAddress) The peer IP address (GRE outer IP address) on the transit gateway side of the Connect peer, which must be specified from a transit gateway CIDR block.transitGatewayAttachmentId
(String transitGatewayAttachmentId) The ID of the Connect attachment.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, sdkFields
-
Method Details
-
transitGatewayAttachmentId
CreateTransitGatewayConnectPeerRequest.Builder transitGatewayAttachmentId(String transitGatewayAttachmentId) The ID of the Connect attachment.
- Parameters:
transitGatewayAttachmentId
- The ID of the Connect attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transitGatewayAddress
The peer IP address (GRE outer IP address) on the transit gateway side of the Connect peer, which must be specified from a transit gateway CIDR block. If not specified, Amazon automatically assigns the first available IP address from the transit gateway CIDR block.
- Parameters:
transitGatewayAddress
- The peer IP address (GRE outer IP address) on the transit gateway side of the Connect peer, which must be specified from a transit gateway CIDR block. If not specified, Amazon automatically assigns the first available IP address from the transit gateway CIDR block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
peerAddress
The peer IP address (GRE outer IP address) on the appliance side of the Connect peer.
- Parameters:
peerAddress
- The peer IP address (GRE outer IP address) on the appliance side of the Connect peer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bgpOptions
CreateTransitGatewayConnectPeerRequest.Builder bgpOptions(TransitGatewayConnectRequestBgpOptions bgpOptions) The BGP options for the Connect peer.
- Parameters:
bgpOptions
- The BGP options for the Connect peer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bgpOptions
default CreateTransitGatewayConnectPeerRequest.Builder bgpOptions(Consumer<TransitGatewayConnectRequestBgpOptions.Builder> bgpOptions) The BGP options for the Connect peer.
This is a convenience method that creates an instance of theTransitGatewayConnectRequestBgpOptions.Builder
avoiding the need to create one manually viaTransitGatewayConnectRequestBgpOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobgpOptions(TransitGatewayConnectRequestBgpOptions)
.- Parameters:
bgpOptions
- a consumer that will call methods onTransitGatewayConnectRequestBgpOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
insideCidrBlocks
CreateTransitGatewayConnectPeerRequest.Builder insideCidrBlocks(Collection<String> insideCidrBlocks) The range of inside IP addresses that are used for BGP peering. You must specify a size /29 IPv4 CIDR block from the
169.254.0.0/16
range. The first address from the range must be configured on the appliance as the BGP IP address. You can also optionally specify a size /125 IPv6 CIDR block from thefd00::/8
range.- Parameters:
insideCidrBlocks
- The range of inside IP addresses that are used for BGP peering. You must specify a size /29 IPv4 CIDR block from the169.254.0.0/16
range. The first address from the range must be configured on the appliance as the BGP IP address. You can also optionally specify a size /125 IPv6 CIDR block from thefd00::/8
range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
insideCidrBlocks
The range of inside IP addresses that are used for BGP peering. You must specify a size /29 IPv4 CIDR block from the
169.254.0.0/16
range. The first address from the range must be configured on the appliance as the BGP IP address. You can also optionally specify a size /125 IPv6 CIDR block from thefd00::/8
range.- Parameters:
insideCidrBlocks
- The range of inside IP addresses that are used for BGP peering. You must specify a size /29 IPv4 CIDR block from the169.254.0.0/16
range. The first address from the range must be configured on the appliance as the BGP IP address. You can also optionally specify a size /125 IPv6 CIDR block from thefd00::/8
range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateTransitGatewayConnectPeerRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications) The tags to apply to the Connect peer.
- Parameters:
tagSpecifications
- The tags to apply to the Connect peer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateTransitGatewayConnectPeerRequest.Builder tagSpecifications(TagSpecification... tagSpecifications) The tags to apply to the Connect peer.
- Parameters:
tagSpecifications
- The tags to apply to the Connect peer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateTransitGatewayConnectPeerRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to apply to the Connect peer.
This is a convenience method that creates an instance of theTagSpecification.Builder
avoiding the need to create one manually viaTagSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totagSpecifications(List<TagSpecification>)
.- 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:
-
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
CreateTransitGatewayConnectPeerRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateTransitGatewayConnectPeerRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-