Interface CreateRouteServerPeerRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateRouteServerPeerRequest.Builder,
,CreateRouteServerPeerRequest> Ec2Request.Builder
,SdkBuilder<CreateRouteServerPeerRequest.Builder,
,CreateRouteServerPeerRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateRouteServerPeerRequest
-
Method Summary
Modifier and TypeMethodDescriptionbgpOptions
(Consumer<RouteServerBgpOptionsRequest.Builder> bgpOptions) The BGP options for the peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings.bgpOptions
(RouteServerBgpOptionsRequest bgpOptions) The BGP options for the peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings.A check for whether you have the required permissions for the action without actually making the request and provides an error response.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.peerAddress
(String peerAddress) The IPv4 address of the peer device.routeServerEndpointId
(String routeServerEndpointId) The ID of the route server endpoint for which to create a peer.tagSpecifications
(Collection<TagSpecification> tagSpecifications) The tags to apply to the route server peer during creation.tagSpecifications
(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to apply to the route server peer during creation.tagSpecifications
(TagSpecification... tagSpecifications) The tags to apply to the route server peer during creation.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 Details
-
routeServerEndpointId
The ID of the route server endpoint for which to create a peer.
- Parameters:
routeServerEndpointId
- The ID of the route server endpoint for which to create a peer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
peerAddress
The IPv4 address of the peer device.
- Parameters:
peerAddress
- The IPv4 address of the peer device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bgpOptions
The BGP options for the peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings.
- Parameters:
bgpOptions
- The BGP options for the peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bgpOptions
default CreateRouteServerPeerRequest.Builder bgpOptions(Consumer<RouteServerBgpOptionsRequest.Builder> bgpOptions) The BGP options for the peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings.
This is a convenience method that creates an instance of theRouteServerBgpOptionsRequest.Builder
avoiding the need to create one manually viaRouteServerBgpOptionsRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobgpOptions(RouteServerBgpOptionsRequest)
.- Parameters:
bgpOptions
- a consumer that will call methods onRouteServerBgpOptionsRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dryRun
A check for 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
- A check for 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.
-
tagSpecifications
CreateRouteServerPeerRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications) The tags to apply to the route server peer during creation.
- Parameters:
tagSpecifications
- The tags to apply to the route server peer during creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
The tags to apply to the route server peer during creation.
- Parameters:
tagSpecifications
- The tags to apply to the route server peer during creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateRouteServerPeerRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to apply to the route server peer during creation.
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:
-
overrideConfiguration
CreateRouteServerPeerRequest.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
CreateRouteServerPeerRequest.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.
-