Interface DirectConnectGatewayAssociation.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DirectConnectGatewayAssociation.Builder,DirectConnectGatewayAssociation>,SdkBuilder<DirectConnectGatewayAssociation.Builder,DirectConnectGatewayAssociation>,SdkPojo
- Enclosing class:
- DirectConnectGatewayAssociation
public static interface DirectConnectGatewayAssociation.Builder extends SdkPojo, CopyableBuilder<DirectConnectGatewayAssociation.Builder,DirectConnectGatewayAssociation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DirectConnectGatewayAssociation.BuilderallowedPrefixesToDirectConnectGateway(Collection<RouteFilterPrefix> allowedPrefixesToDirectConnectGateway)The Amazon VPC prefixes to advertise to the Direct Connect gateway.DirectConnectGatewayAssociation.BuilderallowedPrefixesToDirectConnectGateway(Consumer<RouteFilterPrefix.Builder>... allowedPrefixesToDirectConnectGateway)The Amazon VPC prefixes to advertise to the Direct Connect gateway.DirectConnectGatewayAssociation.BuilderallowedPrefixesToDirectConnectGateway(RouteFilterPrefix... allowedPrefixesToDirectConnectGateway)The Amazon VPC prefixes to advertise to the Direct Connect gateway.default DirectConnectGatewayAssociation.BuilderassociatedGateway(Consumer<AssociatedGateway.Builder> associatedGateway)Information about the associated gateway.DirectConnectGatewayAssociation.BuilderassociatedGateway(AssociatedGateway associatedGateway)Information about the associated gateway.DirectConnectGatewayAssociation.BuilderassociationId(String associationId)The ID of the Direct Connect gateway association.DirectConnectGatewayAssociation.BuilderassociationState(String associationState)The state of the association.DirectConnectGatewayAssociation.BuilderassociationState(DirectConnectGatewayAssociationState associationState)The state of the association.DirectConnectGatewayAssociation.BuilderdirectConnectGatewayId(String directConnectGatewayId)The ID of the Direct Connect gateway.DirectConnectGatewayAssociation.BuilderdirectConnectGatewayOwnerAccount(String directConnectGatewayOwnerAccount)The ID of the Amazon Web Services account that owns the associated gateway.DirectConnectGatewayAssociation.BuilderstateChangeError(String stateChangeError)The error message if the state of an object failed to advance.DirectConnectGatewayAssociation.BuildervirtualGatewayId(String virtualGatewayId)The ID of the virtual private gateway.DirectConnectGatewayAssociation.BuildervirtualGatewayOwnerAccount(String virtualGatewayOwnerAccount)The ID of the Amazon Web Services account that owns the virtual private gateway.DirectConnectGatewayAssociation.BuildervirtualGatewayRegion(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, sdkFields
-
-
-
-
Method Detail
-
directConnectGatewayId
DirectConnectGatewayAssociation.Builder directConnectGatewayId(String 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
DirectConnectGatewayAssociation.Builder associationState(String 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:
DirectConnectGatewayAssociationState,DirectConnectGatewayAssociationState
-
-
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:
DirectConnectGatewayAssociationState,DirectConnectGatewayAssociationState
-
-
stateChangeError
DirectConnectGatewayAssociation.Builder stateChangeError(String 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
DirectConnectGatewayAssociation.Builder associatedGateway(AssociatedGateway 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.Builderavoiding the need to create one manually viaAssociatedGateway.builder().When the
Consumercompletes,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:
associatedGateway(AssociatedGateway)
-
associationId
DirectConnectGatewayAssociation.Builder associationId(String 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.Builderavoiding the need to create one manually viaRouteFilterPrefix.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#allowedPrefixesToDirectConnectGateway(List.) - 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:
#allowedPrefixesToDirectConnectGateway(java.util.Collection)
-
virtualGatewayId
DirectConnectGatewayAssociation.Builder virtualGatewayId(String 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
DirectConnectGatewayAssociation.Builder virtualGatewayRegion(String 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.
-
-