Class CfnTransitGatewayMeteringPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayMeteringPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayMeteringPolicyProps>
- Enclosing interface:
CfnTransitGatewayMeteringPolicyProps
@Stability(Stable)
public static final class CfnTransitGatewayMeteringPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayMeteringPolicyProps>
A builder for
CfnTransitGatewayMeteringPolicyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.middleboxAttachmentIds(List<String> middleboxAttachmentIds) Sets the value ofCfnTransitGatewayMeteringPolicyProps.getMiddleboxAttachmentIds()Sets the value ofCfnTransitGatewayMeteringPolicyProps.getTags()transitGatewayId(String transitGatewayId) Sets the value ofCfnTransitGatewayMeteringPolicyProps.getTransitGatewayId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
transitGatewayId
@Stability(Stable) public CfnTransitGatewayMeteringPolicyProps.Builder transitGatewayId(String transitGatewayId) Sets the value ofCfnTransitGatewayMeteringPolicyProps.getTransitGatewayId()- Parameters:
transitGatewayId- The ID of the transit gateway associated with the metering policy. This parameter is required.- Returns:
this
-
middleboxAttachmentIds
@Stability(Stable) public CfnTransitGatewayMeteringPolicyProps.Builder middleboxAttachmentIds(List<String> middleboxAttachmentIds) Sets the value ofCfnTransitGatewayMeteringPolicyProps.getMiddleboxAttachmentIds()- Parameters:
middleboxAttachmentIds- The IDs of the middlebox attachments associated with the metering policy.- Returns:
this
-
tags
@Stability(Stable) public CfnTransitGatewayMeteringPolicyProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnTransitGatewayMeteringPolicyProps.getTags()- Parameters:
tags- The tags assigned to the transit gateway metering policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayMeteringPolicyProps>- Returns:
- a new instance of
CfnTransitGatewayMeteringPolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-