Class CfnVpcAttachmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.networkmanager.CfnVpcAttachmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVpcAttachmentProps>
- Enclosing interface:
CfnVpcAttachmentProps
@Stability(Stable)
public static final class CfnVpcAttachmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVpcAttachmentProps>
A builder for
CfnVpcAttachmentProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.coreNetworkId
(String coreNetworkId) Sets the value ofCfnVpcAttachmentProps.getCoreNetworkId()
options
(IResolvable options) Sets the value ofCfnVpcAttachmentProps.getOptions()
Sets the value ofCfnVpcAttachmentProps.getOptions()
proposedSegmentChange
(IResolvable proposedSegmentChange) Sets the value ofCfnVpcAttachmentProps.getProposedSegmentChange()
proposedSegmentChange
(CfnVpcAttachment.ProposedSegmentChangeProperty proposedSegmentChange) Sets the value ofCfnVpcAttachmentProps.getProposedSegmentChange()
subnetArns
(List<String> subnetArns) Sets the value ofCfnVpcAttachmentProps.getSubnetArns()
Sets the value ofCfnVpcAttachmentProps.getTags()
Sets the value ofCfnVpcAttachmentProps.getVpcArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
coreNetworkId
Sets the value ofCfnVpcAttachmentProps.getCoreNetworkId()
- Parameters:
coreNetworkId
- The core network ID. This parameter is required.- Returns:
this
-
subnetArns
Sets the value ofCfnVpcAttachmentProps.getSubnetArns()
- Parameters:
subnetArns
- The subnet ARNs. This parameter is required.- Returns:
this
-
vpcArn
Sets the value ofCfnVpcAttachmentProps.getVpcArn()
- Parameters:
vpcArn
- The ARN of the VPC attachment. This parameter is required.- Returns:
this
-
options
Sets the value ofCfnVpcAttachmentProps.getOptions()
- Parameters:
options
- Options for creating the VPC attachment.- Returns:
this
-
options
@Stability(Stable) public CfnVpcAttachmentProps.Builder options(CfnVpcAttachment.VpcOptionsProperty options) Sets the value ofCfnVpcAttachmentProps.getOptions()
- Parameters:
options
- Options for creating the VPC attachment.- Returns:
this
-
proposedSegmentChange
@Stability(Stable) public CfnVpcAttachmentProps.Builder proposedSegmentChange(IResolvable proposedSegmentChange) Sets the value ofCfnVpcAttachmentProps.getProposedSegmentChange()
- Parameters:
proposedSegmentChange
-AWS::NetworkManager::VpcAttachment.ProposedSegmentChange
.- Returns:
this
-
proposedSegmentChange
@Stability(Stable) public CfnVpcAttachmentProps.Builder proposedSegmentChange(CfnVpcAttachment.ProposedSegmentChangeProperty proposedSegmentChange) Sets the value ofCfnVpcAttachmentProps.getProposedSegmentChange()
- Parameters:
proposedSegmentChange
-AWS::NetworkManager::VpcAttachment.ProposedSegmentChange
.- Returns:
this
-
tags
Sets the value ofCfnVpcAttachmentProps.getTags()
- Parameters:
tags
- The tags associated with the VPC attachment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVpcAttachmentProps>
- Returns:
- a new instance of
CfnVpcAttachmentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-