Interface DirectConnectGatewayAssociation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DirectConnectGatewayAssociation.Builder,
,DirectConnectGatewayAssociation> SdkBuilder<DirectConnectGatewayAssociation.Builder,
,DirectConnectGatewayAssociation> SdkPojo
- Enclosing class:
DirectConnectGatewayAssociation
-
Method Summary
Modifier and TypeMethodDescriptionallowedPrefixesToDirectConnectGateway
(Collection<RouteFilterPrefix> allowedPrefixesToDirectConnectGateway) The Amazon VPC prefixes to advertise to the Direct Connect gateway.allowedPrefixesToDirectConnectGateway
(Consumer<RouteFilterPrefix.Builder>... allowedPrefixesToDirectConnectGateway) The Amazon VPC prefixes to advertise to the Direct Connect gateway.allowedPrefixesToDirectConnectGateway
(RouteFilterPrefix... allowedPrefixesToDirectConnectGateway) The Amazon VPC prefixes to advertise to the Direct Connect gateway.associatedCoreNetwork
(Consumer<AssociatedCoreNetwork.Builder> associatedCoreNetwork) The ID of the Cloud WAN core network associated with the Direct Connect gateway attachment.associatedCoreNetwork
(AssociatedCoreNetwork associatedCoreNetwork) The ID of the Cloud WAN core network associated with the Direct Connect gateway attachment.associatedGateway
(Consumer<AssociatedGateway.Builder> associatedGateway) Information about the associated gateway.associatedGateway
(AssociatedGateway associatedGateway) Information about the associated gateway.associationId
(String associationId) The ID of the Direct Connect gateway association.associationState
(String associationState) The state of the association.associationState
(DirectConnectGatewayAssociationState associationState) The state of the association.directConnectGatewayId
(String directConnectGatewayId) The ID of the Direct Connect gateway.directConnectGatewayOwnerAccount
(String directConnectGatewayOwnerAccount) The ID of the Amazon Web Services account that owns the associated gateway.stateChangeError
(String stateChangeError) The error message if the state of an object failed to advance.virtualGatewayId
(String virtualGatewayId) The ID of the virtual private gateway.virtualGatewayOwnerAccount
(String virtualGatewayOwnerAccount) The ID of the Amazon Web Services account that owns the virtual private gateway.virtualGatewayRegion
(String virtualGatewayRegion) The Amazon Web Services Region where the virtual private gateway is located.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
directConnectGatewayId
The ID of the Direct Connect gateway.
- Parameters:
directConnectGatewayId
- The ID of the Direct Connect gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
directConnectGatewayOwnerAccount
DirectConnectGatewayAssociation.Builder directConnectGatewayOwnerAccount(String directConnectGatewayOwnerAccount) The ID of the Amazon Web Services account that owns the associated gateway.
- Parameters:
directConnectGatewayOwnerAccount
- The ID of the Amazon Web Services account that owns the associated gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associationState
The state of the association. The following are the possible values:
-
associating
: The initial state after calling CreateDirectConnectGatewayAssociation. -
associated
: The Direct Connect gateway and virtual private gateway or transit gateway are successfully associated and ready to pass traffic. -
disassociating
: The initial state after calling DeleteDirectConnectGatewayAssociation. -
disassociated
: The virtual private gateway or transit gateway is disassociated from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway or transit gateway is stopped. -
updating
: The CIDR blocks for the virtual private gateway or transit gateway are currently being updated. This could be new CIDR blocks added or current CIDR blocks removed.
- Parameters:
associationState
- The state of the association. The following are the possible values:-
associating
: The initial state after calling CreateDirectConnectGatewayAssociation. -
associated
: The Direct Connect gateway and virtual private gateway or transit gateway are successfully associated and ready to pass traffic. -
disassociating
: The initial state after calling DeleteDirectConnectGatewayAssociation. -
disassociated
: The virtual private gateway or transit gateway is disassociated from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway or transit gateway is stopped. -
updating
: The CIDR blocks for the virtual private gateway or transit gateway are currently being updated. This could be new CIDR blocks added or current CIDR blocks removed.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
associationState
DirectConnectGatewayAssociation.Builder associationState(DirectConnectGatewayAssociationState associationState) The state of the association. The following are the possible values:
-
associating
: The initial state after calling CreateDirectConnectGatewayAssociation. -
associated
: The Direct Connect gateway and virtual private gateway or transit gateway are successfully associated and ready to pass traffic. -
disassociating
: The initial state after calling DeleteDirectConnectGatewayAssociation. -
disassociated
: The virtual private gateway or transit gateway is disassociated from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway or transit gateway is stopped. -
updating
: The CIDR blocks for the virtual private gateway or transit gateway are currently being updated. This could be new CIDR blocks added or current CIDR blocks removed.
- Parameters:
associationState
- The state of the association. The following are the possible values:-
associating
: The initial state after calling CreateDirectConnectGatewayAssociation. -
associated
: The Direct Connect gateway and virtual private gateway or transit gateway are successfully associated and ready to pass traffic. -
disassociating
: The initial state after calling DeleteDirectConnectGatewayAssociation. -
disassociated
: The virtual private gateway or transit gateway is disassociated from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway or transit gateway is stopped. -
updating
: The CIDR blocks for the virtual private gateway or transit gateway are currently being updated. This could be new CIDR blocks added or current CIDR blocks removed.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
stateChangeError
The error message if the state of an object failed to advance.
- Parameters:
stateChangeError
- The error message if the state of an object failed to advance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedGateway
Information about the associated gateway.
- Parameters:
associatedGateway
- Information about the associated gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedGateway
default DirectConnectGatewayAssociation.Builder associatedGateway(Consumer<AssociatedGateway.Builder> associatedGateway) Information about the associated gateway.
This is a convenience method that creates an instance of theAssociatedGateway.Builder
avoiding the need to create one manually viaAssociatedGateway.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toassociatedGateway(AssociatedGateway)
.- Parameters:
associatedGateway
- a consumer that will call methods onAssociatedGateway.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
associationId
The ID of the Direct Connect gateway association.
- Parameters:
associationId
- The ID of the Direct Connect gateway association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedPrefixesToDirectConnectGateway
DirectConnectGatewayAssociation.Builder allowedPrefixesToDirectConnectGateway(Collection<RouteFilterPrefix> allowedPrefixesToDirectConnectGateway) The Amazon VPC prefixes to advertise to the Direct Connect gateway.
- Parameters:
allowedPrefixesToDirectConnectGateway
- The Amazon VPC prefixes to advertise to the Direct Connect gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedPrefixesToDirectConnectGateway
DirectConnectGatewayAssociation.Builder allowedPrefixesToDirectConnectGateway(RouteFilterPrefix... allowedPrefixesToDirectConnectGateway) The Amazon VPC prefixes to advertise to the Direct Connect gateway.
- Parameters:
allowedPrefixesToDirectConnectGateway
- The Amazon VPC prefixes to advertise to the Direct Connect gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedPrefixesToDirectConnectGateway
DirectConnectGatewayAssociation.Builder allowedPrefixesToDirectConnectGateway(Consumer<RouteFilterPrefix.Builder>... allowedPrefixesToDirectConnectGateway) The Amazon VPC prefixes to advertise to the Direct Connect gateway.
This is a convenience method that creates an instance of theRouteFilterPrefix.Builder
avoiding the need to create one manually viaRouteFilterPrefix.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toallowedPrefixesToDirectConnectGateway(List<RouteFilterPrefix>)
.- Parameters:
allowedPrefixesToDirectConnectGateway
- 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:
-
associatedCoreNetwork
DirectConnectGatewayAssociation.Builder associatedCoreNetwork(AssociatedCoreNetwork associatedCoreNetwork) The ID of the Cloud WAN core network associated with the Direct Connect gateway attachment.
- Parameters:
associatedCoreNetwork
- The ID of the Cloud WAN core network associated with the Direct Connect gateway attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedCoreNetwork
default DirectConnectGatewayAssociation.Builder associatedCoreNetwork(Consumer<AssociatedCoreNetwork.Builder> associatedCoreNetwork) The ID of the Cloud WAN core network associated with the Direct Connect gateway attachment.
This is a convenience method that creates an instance of theAssociatedCoreNetwork.Builder
avoiding the need to create one manually viaAssociatedCoreNetwork.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toassociatedCoreNetwork(AssociatedCoreNetwork)
.- Parameters:
associatedCoreNetwork
- a consumer that will call methods onAssociatedCoreNetwork.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
virtualGatewayId
The ID of the virtual private gateway. Applies only to private virtual interfaces.
- Parameters:
virtualGatewayId
- The ID of the virtual private gateway. Applies only to private virtual interfaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
virtualGatewayRegion
The Amazon Web Services Region where the virtual private gateway is located.
- Parameters:
virtualGatewayRegion
- The Amazon Web Services Region where the virtual private gateway is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
virtualGatewayOwnerAccount
DirectConnectGatewayAssociation.Builder virtualGatewayOwnerAccount(String virtualGatewayOwnerAccount) The ID of the Amazon Web Services account that owns the virtual private gateway.
- Parameters:
virtualGatewayOwnerAccount
- The ID of the Amazon Web Services account that owns the virtual private gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-