Interface NewPublicVirtualInterface.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<NewPublicVirtualInterface.Builder,,NewPublicVirtualInterface> SdkBuilder<NewPublicVirtualInterface.Builder,,NewPublicVirtualInterface> SdkPojo
- Enclosing class:
NewPublicVirtualInterface
-
Method Summary
Modifier and TypeMethodDescriptionaddressFamily(String addressFamily) The address family for the BGP peer.addressFamily(AddressFamily addressFamily) The address family for the BGP peer.amazonAddress(String amazonAddress) The IP address assigned to the Amazon interface.The autonomous system number (ASN).The long ASN for a new public virtual interface.The authentication key for BGP configuration.customerAddress(String customerAddress) The IP address assigned to the customer interface.routeFilterPrefixes(Collection<RouteFilterPrefix> routeFilterPrefixes) The routes to be advertised to the Amazon Web Services network in this Region.routeFilterPrefixes(Consumer<RouteFilterPrefix.Builder>... routeFilterPrefixes) The routes to be advertised to the Amazon Web Services network in this Region.routeFilterPrefixes(RouteFilterPrefix... routeFilterPrefixes) The routes to be advertised to the Amazon Web Services network in this Region.tags(Collection<Tag> tags) The tags associated with the public virtual interface.tags(Consumer<Tag.Builder>... tags) The tags associated with the public virtual interface.The tags associated with the public virtual interface.virtualInterfaceName(String virtualInterfaceName) The name of the virtual interface assigned by the customer network.The ID of the VLAN.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
virtualInterfaceName
The name of the virtual interface assigned by the customer network. The name has a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen (-).
- Parameters:
virtualInterfaceName- The name of the virtual interface assigned by the customer network. The name has a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen (-).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vlan
The ID of the VLAN.
- Parameters:
vlan- The ID of the VLAN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
asn
The autonomous system number (ASN). The valid range is from 1 to 2147483646 for Border Gateway Protocol (BGP) configuration. If you provide a number greater than the maximum, an error is returned. Use
asnLonginstead.You can use
asnLongorasn, but not both. We recommend usingasnLongas it supports a greater pool of numbers.-
The
asnLongattribute accepts both ASN and long ASN ranges. -
If you provide a value in the same API call for both
asnandasnLong, the API will only accept the value forasnLong.
- Parameters:
asn- The autonomous system number (ASN). The valid range is from 1 to 2147483646 for Border Gateway Protocol (BGP) configuration. If you provide a number greater than the maximum, an error is returned. UseasnLonginstead.You can use
asnLongorasn, but not both. We recommend usingasnLongas it supports a greater pool of numbers.-
The
asnLongattribute accepts both ASN and long ASN ranges. -
If you provide a value in the same API call for both
asnandasnLong, the API will only accept the value forasnLong.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
asnLong
The long ASN for a new public virtual interface. The valid range is from 1 to 4294967294 for BGP configuration.
You can use
asnLongorasn, but not both. We recommend usingasnLongas it supports a greater pool of numbers.-
The
asnLongattribute accepts both ASN and long ASN ranges. -
If you provide a value in the same API call for both
asnandasnLong, the API will only accept the value forasnLong.
- Parameters:
asnLong- The long ASN for a new public virtual interface. The valid range is from 1 to 4294967294 for BGP configuration.You can use
asnLongorasn, but not both. We recommend usingasnLongas it supports a greater pool of numbers.-
The
asnLongattribute accepts both ASN and long ASN ranges. -
If you provide a value in the same API call for both
asnandasnLong, the API will only accept the value forasnLong.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
authKey
The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
- Parameters:
authKey- The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
amazonAddress
The IP address assigned to the Amazon interface.
- Parameters:
amazonAddress- The IP address assigned to the Amazon interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerAddress
The IP address assigned to the customer interface.
- Parameters:
customerAddress- The IP address assigned to the customer interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addressFamily
The address family for the BGP peer.
- Parameters:
addressFamily- The address family for the BGP peer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
addressFamily
The address family for the BGP peer.
- Parameters:
addressFamily- The address family for the BGP peer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
routeFilterPrefixes
NewPublicVirtualInterface.Builder routeFilterPrefixes(Collection<RouteFilterPrefix> routeFilterPrefixes) The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual interfaces.
- Parameters:
routeFilterPrefixes- The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual interfaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routeFilterPrefixes
The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual interfaces.
- Parameters:
routeFilterPrefixes- The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual interfaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routeFilterPrefixes
NewPublicVirtualInterface.Builder routeFilterPrefixes(Consumer<RouteFilterPrefix.Builder>... routeFilterPrefixes) The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual interfaces.
This is a convenience method that creates an instance of theRouteFilterPrefix.Builderavoiding the need to create one manually viaRouteFilterPrefix.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torouteFilterPrefixes(List<RouteFilterPrefix>).- Parameters:
routeFilterPrefixes- a consumer that will call methods onRouteFilterPrefix.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags associated with the public virtual interface.
- Parameters:
tags- The tags associated with the public virtual interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags associated with the public virtual interface.
- Parameters:
tags- The tags associated with the public virtual interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags associated with the public virtual interface.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-