Class CfnTransitGatewayMeteringPolicy.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayMeteringPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayMeteringPolicy>
- Enclosing class:
CfnTransitGatewayMeteringPolicy
@Stability(Stable)
public static final class CfnTransitGatewayMeteringPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayMeteringPolicy>
A fluent builder for
CfnTransitGatewayMeteringPolicy.-
Method Summary
Modifier and TypeMethodDescriptionbuild()middleboxAttachmentIds(List<String> middleboxAttachmentIds) The IDs of the middlebox attachments associated with the metering policy.The tags assigned to the transit gateway metering policy.transitGatewayId(String transitGatewayId) The ID of the transit gateway associated with the metering policy.
-
Method Details
-
create
@Stability(Stable) public static CfnTransitGatewayMeteringPolicy.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnTransitGatewayMeteringPolicy.Builder.
-
transitGatewayId
@Stability(Stable) public CfnTransitGatewayMeteringPolicy.Builder transitGatewayId(String transitGatewayId) The ID of the transit gateway associated with the metering policy.- Parameters:
transitGatewayId- The ID of the transit gateway associated with the metering policy. This parameter is required.- Returns:
this- See Also:
-
middleboxAttachmentIds
@Stability(Stable) public CfnTransitGatewayMeteringPolicy.Builder middleboxAttachmentIds(List<String> middleboxAttachmentIds) The IDs of the middlebox attachments associated with the metering policy.- Parameters:
middleboxAttachmentIds- The IDs of the middlebox attachments associated with the metering policy. This parameter is required.- Returns:
this- See Also:
-
tags
The tags assigned to the transit gateway metering policy.- Parameters:
tags- The tags assigned to the transit gateway metering policy. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayMeteringPolicy>- Returns:
- a newly built instance of
CfnTransitGatewayMeteringPolicy.
-