Class CfnVpcAttachment.ProposedSegmentChangeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.networkmanager.CfnVpcAttachment.ProposedSegmentChangeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVpcAttachment.ProposedSegmentChangeProperty>
- Enclosing interface:
CfnVpcAttachment.ProposedSegmentChangeProperty
@Stability(Stable)
public static final class CfnVpcAttachment.ProposedSegmentChangeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVpcAttachment.ProposedSegmentChangeProperty>
A builder for
CfnVpcAttachment.ProposedSegmentChangeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattachmentPolicyRuleNumber
(Number attachmentPolicyRuleNumber) build()
Builds the configured instance.segmentName
(String segmentName) Sets the value ofCfnVpcAttachment.ProposedSegmentChangeProperty.getSegmentName()
Sets the value ofCfnVpcAttachment.ProposedSegmentChangeProperty.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attachmentPolicyRuleNumber
@Stability(Stable) public CfnVpcAttachment.ProposedSegmentChangeProperty.Builder attachmentPolicyRuleNumber(Number attachmentPolicyRuleNumber) - Parameters:
attachmentPolicyRuleNumber
- The rule number in the policy document that applies to this change.- Returns:
this
-
segmentName
@Stability(Stable) public CfnVpcAttachment.ProposedSegmentChangeProperty.Builder segmentName(String segmentName) Sets the value ofCfnVpcAttachment.ProposedSegmentChangeProperty.getSegmentName()
- Parameters:
segmentName
- The name of the segment to change.- Returns:
this
-
tags
@Stability(Stable) public CfnVpcAttachment.ProposedSegmentChangeProperty.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnVpcAttachment.ProposedSegmentChangeProperty.getTags()
- Parameters:
tags
- The list of key-value tags that changed for the segment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVpcAttachment.ProposedSegmentChangeProperty>
- Returns:
- a new instance of
CfnVpcAttachment.ProposedSegmentChangeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-