Class CfnTransitGatewayPeeringAttachmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayPeeringAttachmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayPeeringAttachmentProps>
- Enclosing interface:
CfnTransitGatewayPeeringAttachmentProps
@Stability(Stable)
public static final class CfnTransitGatewayPeeringAttachmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayPeeringAttachmentProps>
A builder for
CfnTransitGatewayPeeringAttachmentProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.peerAccountId
(String peerAccountId) Sets the value ofCfnTransitGatewayPeeringAttachmentProps.getPeerAccountId()
peerRegion
(String peerRegion) Sets the value ofCfnTransitGatewayPeeringAttachmentProps.getPeerRegion()
peerTransitGatewayId
(String peerTransitGatewayId) Sets the value ofCfnTransitGatewayPeeringAttachmentProps.getPeerTransitGatewayId()
Sets the value ofCfnTransitGatewayPeeringAttachmentProps.getTags()
transitGatewayId
(String transitGatewayId) Sets the value ofCfnTransitGatewayPeeringAttachmentProps.getTransitGatewayId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
peerAccountId
@Stability(Stable) public CfnTransitGatewayPeeringAttachmentProps.Builder peerAccountId(String peerAccountId) Sets the value ofCfnTransitGatewayPeeringAttachmentProps.getPeerAccountId()
- Parameters:
peerAccountId
- The ID of the AWS account that owns the transit gateway. This parameter is required.- Returns:
this
-
peerRegion
@Stability(Stable) public CfnTransitGatewayPeeringAttachmentProps.Builder peerRegion(String peerRegion) Sets the value ofCfnTransitGatewayPeeringAttachmentProps.getPeerRegion()
- Parameters:
peerRegion
- The Region of the transit gateway. This parameter is required.- Returns:
this
-
peerTransitGatewayId
@Stability(Stable) public CfnTransitGatewayPeeringAttachmentProps.Builder peerTransitGatewayId(String peerTransitGatewayId) Sets the value ofCfnTransitGatewayPeeringAttachmentProps.getPeerTransitGatewayId()
- Parameters:
peerTransitGatewayId
- The ID of the transit gateway. This parameter is required.- Returns:
this
-
transitGatewayId
@Stability(Stable) public CfnTransitGatewayPeeringAttachmentProps.Builder transitGatewayId(String transitGatewayId) Sets the value ofCfnTransitGatewayPeeringAttachmentProps.getTransitGatewayId()
- Parameters:
transitGatewayId
- The ID of the transit gateway peering attachment. This parameter is required.- Returns:
this
-
tags
@Stability(Stable) public CfnTransitGatewayPeeringAttachmentProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnTransitGatewayPeeringAttachmentProps.getTags()
- Parameters:
tags
- The tags for the transit gateway peering attachment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayPeeringAttachmentProps>
- Returns:
- a new instance of
CfnTransitGatewayPeeringAttachmentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-