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