Class CfnDirectConnectGatewayProps.Builder
java.lang.Object
software.amazon.awscdk.services.directconnect.CfnDirectConnectGatewayProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDirectConnectGatewayProps>
- Enclosing interface:
CfnDirectConnectGatewayProps
@Stability(Stable)
public static final class CfnDirectConnectGatewayProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDirectConnectGatewayProps>
A builder for
CfnDirectConnectGatewayProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamazonSideAsn(String amazonSideAsn) Sets the value ofCfnDirectConnectGatewayProps.getAmazonSideAsn()build()Builds the configured instance.directConnectGatewayName(String directConnectGatewayName) Sets the value ofCfnDirectConnectGatewayProps.getDirectConnectGatewayName()Sets the value ofCfnDirectConnectGatewayProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
directConnectGatewayName
@Stability(Stable) public CfnDirectConnectGatewayProps.Builder directConnectGatewayName(String directConnectGatewayName) Sets the value ofCfnDirectConnectGatewayProps.getDirectConnectGatewayName()- Parameters:
directConnectGatewayName- The name of the Direct Connect gateway. This parameter is required.- Returns:
this
-
amazonSideAsn
Sets the value ofCfnDirectConnectGatewayProps.getAmazonSideAsn()- Parameters:
amazonSideAsn- The autonomous system number (ASN) for the Amazon side of the connection.- Returns:
this
-
tags
Sets the value ofCfnDirectConnectGatewayProps.getTags()- Parameters:
tags- The tags associated with the Direct Connect gateway.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDirectConnectGatewayProps>- Returns:
- a new instance of
CfnDirectConnectGatewayProps - Throws:
NullPointerException- if any required attribute was not provided
-