Class CfnDirectConnectGatewayAssociationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.directconnect.CfnDirectConnectGatewayAssociationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDirectConnectGatewayAssociationMixinProps>
- Enclosing interface:
CfnDirectConnectGatewayAssociationMixinProps
@Stability(Stable)
public static final class CfnDirectConnectGatewayAssociationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDirectConnectGatewayAssociationMixinProps>
A builder for
CfnDirectConnectGatewayAssociationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptDirectConnectGatewayAssociationProposalRoleArn(String acceptDirectConnectGatewayAssociationProposalRoleArn) allowedPrefixesToDirectConnectGateway(List<String> allowedPrefixesToDirectConnectGateway) associatedGatewayId(String associatedGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationMixinProps.getAssociatedGatewayId()associatedGatewayId(ITransitGatewayRef associatedGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationMixinProps.getAssociatedGatewayId()associatedGatewayId(IVPNGatewayRef associatedGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationMixinProps.getAssociatedGatewayId()build()Builds the configured instance.directConnectGatewayId(String directConnectGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationMixinProps.getDirectConnectGatewayId()directConnectGatewayId(IDirectConnectGatewayRef directConnectGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationMixinProps.getDirectConnectGatewayId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
acceptDirectConnectGatewayAssociationProposalRoleArn
@Stability(Stable) public CfnDirectConnectGatewayAssociationMixinProps.Builder acceptDirectConnectGatewayAssociationProposalRoleArn(String acceptDirectConnectGatewayAssociationProposalRoleArn) Sets the value ofCfnDirectConnectGatewayAssociationMixinProps.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 CfnDirectConnectGatewayAssociationMixinProps.Builder allowedPrefixesToDirectConnectGateway(List<String> allowedPrefixesToDirectConnectGateway) Sets the value ofCfnDirectConnectGatewayAssociationMixinProps.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
-
associatedGatewayId
@Stability(Stable) public CfnDirectConnectGatewayAssociationMixinProps.Builder associatedGatewayId(String associatedGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationMixinProps.getAssociatedGatewayId()- Parameters:
associatedGatewayId- the value to be set.- Returns:
this
-
associatedGatewayId
@Stability(Stable) public CfnDirectConnectGatewayAssociationMixinProps.Builder associatedGatewayId(ITransitGatewayRef associatedGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationMixinProps.getAssociatedGatewayId()- Parameters:
associatedGatewayId- the value to be set.- Returns:
this
-
associatedGatewayId
@Stability(Stable) public CfnDirectConnectGatewayAssociationMixinProps.Builder associatedGatewayId(IVPNGatewayRef associatedGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationMixinProps.getAssociatedGatewayId()- Parameters:
associatedGatewayId- the value to be set.- Returns:
this
-
directConnectGatewayId
@Stability(Stable) public CfnDirectConnectGatewayAssociationMixinProps.Builder directConnectGatewayId(String directConnectGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationMixinProps.getDirectConnectGatewayId()- Parameters:
directConnectGatewayId- the value to be set.- Returns:
this
-
directConnectGatewayId
@Stability(Stable) public CfnDirectConnectGatewayAssociationMixinProps.Builder directConnectGatewayId(IDirectConnectGatewayRef directConnectGatewayId) Sets the value ofCfnDirectConnectGatewayAssociationMixinProps.getDirectConnectGatewayId()- Parameters:
directConnectGatewayId- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDirectConnectGatewayAssociationMixinProps>- Returns:
- a new instance of
CfnDirectConnectGatewayAssociationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-