Class CfnDirectConnectGatewayAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.directconnect.CfnDirectConnectGatewayAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDirectConnectGatewayAssociationProps>
- Enclosing interface:
CfnDirectConnectGatewayAssociationProps
@Stability(Stable)
public static final class CfnDirectConnectGatewayAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDirectConnectGatewayAssociationProps>
A builder for
CfnDirectConnectGatewayAssociationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptDirectConnectGatewayAssociationProposalRoleArn(String acceptDirectConnectGatewayAssociationProposalRoleArn) allowedPrefixesToDirectConnectGateway(List<String> allowedPrefixesToDirectConnectGateway) associatedGatewayId(String associatedGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationProps.getAssociatedGatewayId()associatedGatewayId(ITransitGatewayRef associatedGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationProps.getAssociatedGatewayId()associatedGatewayId(IVPNGatewayRef associatedGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationProps.getAssociatedGatewayId()build()Builds the configured instance.directConnectGatewayId(String directConnectGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationProps.getDirectConnectGatewayId()directConnectGatewayId(IDirectConnectGatewayRef directConnectGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationProps.getDirectConnectGatewayId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
associatedGatewayId
@Stability(Stable) public CfnDirectConnectGatewayAssociationProps.Builder associatedGatewayId(String associatedGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationProps.getAssociatedGatewayId()- Parameters:
associatedGatewayId- the value to be set. This parameter is required.- Returns:
this
-
associatedGatewayId
@Stability(Stable) public CfnDirectConnectGatewayAssociationProps.Builder associatedGatewayId(ITransitGatewayRef associatedGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationProps.getAssociatedGatewayId()- Parameters:
associatedGatewayId- the value to be set. This parameter is required.- Returns:
this
-
associatedGatewayId
@Stability(Stable) public CfnDirectConnectGatewayAssociationProps.Builder associatedGatewayId(IVPNGatewayRef associatedGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationProps.getAssociatedGatewayId()- Parameters:
associatedGatewayId- the value to be set. This parameter is required.- Returns:
this
-
directConnectGatewayId
@Stability(Stable) public CfnDirectConnectGatewayAssociationProps.Builder directConnectGatewayId(String directConnectGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationProps.getDirectConnectGatewayId()- Parameters:
directConnectGatewayId- the value to be set. This parameter is required.- Returns:
this
-
directConnectGatewayId
@Stability(Stable) public CfnDirectConnectGatewayAssociationProps.Builder directConnectGatewayId(IDirectConnectGatewayRef directConnectGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationProps.getDirectConnectGatewayId()- Parameters:
directConnectGatewayId- the value to be set. This parameter is required.- Returns:
this
-
acceptDirectConnectGatewayAssociationProposalRoleArn
@Stability(Stable) public CfnDirectConnectGatewayAssociationProps.Builder acceptDirectConnectGatewayAssociationProposalRoleArn(String acceptDirectConnectGatewayAssociationProposalRoleArn) Sets the value ofCfnDirectConnectGatewayAssociationProps.getAcceptDirectConnectGatewayAssociationProposalRoleArn()- Parameters:
acceptDirectConnectGatewayAssociationProposalRoleArn- The Amazon Resource Name (ARN) of the role to accept the Direct Connect Gateway association proposal. Needs directconnect:AcceptDirectConnectGatewayAssociationProposal permissions.- Returns:
this
-
allowedPrefixesToDirectConnectGateway
@Stability(Stable) public CfnDirectConnectGatewayAssociationProps.Builder allowedPrefixesToDirectConnectGateway(List<String> allowedPrefixesToDirectConnectGateway) Sets the value ofCfnDirectConnectGatewayAssociationProps.getAllowedPrefixesToDirectConnectGateway()- Parameters:
allowedPrefixesToDirectConnectGateway- The Amazon VPC prefixes to advertise to the Direct Connect gateway. This parameter is required when you create an association to a transit gateway.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDirectConnectGatewayAssociationProps>- Returns:
- a new instance of
CfnDirectConnectGatewayAssociationProps - Throws:
NullPointerException- if any required attribute was not provided
-