Class CfnTransitGatewayConnectProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayConnectProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayConnectProps>
- Enclosing interface:
CfnTransitGatewayConnectProps
@Stability(Stable)
public static final class CfnTransitGatewayConnectProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayConnectProps>
A builder for
CfnTransitGatewayConnectProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.options(IResolvable options) Sets the value ofCfnTransitGatewayConnectProps.getOptions()Sets the value ofCfnTransitGatewayConnectProps.getOptions()Sets the value ofCfnTransitGatewayConnectProps.getTags()transportTransitGatewayAttachmentId(String transportTransitGatewayAttachmentId) Sets the value ofCfnTransitGatewayConnectProps.getTransportTransitGatewayAttachmentId()transportTransitGatewayAttachmentId(ITransitGatewayVpcAttachmentRef transportTransitGatewayAttachmentId) Sets the value ofCfnTransitGatewayConnectProps.getTransportTransitGatewayAttachmentId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
options
Sets the value ofCfnTransitGatewayConnectProps.getOptions()- Parameters:
options- The Connect attachment options. This parameter is required.- protocol (gre)
- Returns:
this
-
options
@Stability(Stable) public CfnTransitGatewayConnectProps.Builder options(CfnTransitGatewayConnect.TransitGatewayConnectOptionsProperty options) Sets the value ofCfnTransitGatewayConnectProps.getOptions()- Parameters:
options- The Connect attachment options. This parameter is required.- protocol (gre)
- Returns:
this
-
transportTransitGatewayAttachmentId
@Stability(Stable) public CfnTransitGatewayConnectProps.Builder transportTransitGatewayAttachmentId(String transportTransitGatewayAttachmentId) Sets the value ofCfnTransitGatewayConnectProps.getTransportTransitGatewayAttachmentId()- Parameters:
transportTransitGatewayAttachmentId- The ID of the attachment from which the Connect attachment was created. This parameter is required.- Returns:
this
-
transportTransitGatewayAttachmentId
@Stability(Stable) public CfnTransitGatewayConnectProps.Builder transportTransitGatewayAttachmentId(ITransitGatewayVpcAttachmentRef transportTransitGatewayAttachmentId) Sets the value ofCfnTransitGatewayConnectProps.getTransportTransitGatewayAttachmentId()- Parameters:
transportTransitGatewayAttachmentId- The ID of the attachment from which the Connect attachment was created. This parameter is required.- Returns:
this
-
tags
Sets the value ofCfnTransitGatewayConnectProps.getTags()- Parameters:
tags- The tags for the attachment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayConnectProps>- Returns:
- a new instance of
CfnTransitGatewayConnectProps - Throws:
NullPointerException- if any required attribute was not provided
-