Class CfnTransitGatewayMeteringPolicyEntry.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayMeteringPolicyEntry.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayMeteringPolicyEntry>
- Enclosing class:
CfnTransitGatewayMeteringPolicyEntry
@Stability(Stable)
public static final class CfnTransitGatewayMeteringPolicyEntry.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayMeteringPolicyEntry>
A fluent builder for
CfnTransitGatewayMeteringPolicyEntry.-
Method Summary
Modifier and TypeMethodDescriptionbuild()destinationCidrBlock(String destinationCidrBlock) Describes an IPv4 CIDR block.destinationPortRange(String destinationPortRange) Describes a range of ports.destinationTransitGatewayAttachmentId(String destinationTransitGatewayAttachmentId) The ID of the source attachment through which traffic leaves a transit gateway.destinationTransitGatewayAttachmentType(String destinationTransitGatewayAttachmentType) meteredAccount(String meteredAccount) The AWS account ID to which the metered traffic is attributed.policyRuleNumber(Number policyRuleNumber) The rule number of the metering policy entry.The protocol of the traffic.sourceCidrBlock(String sourceCidrBlock) Describes an IPv4 CIDR block.sourcePortRange(String sourcePortRange) Describes a range of ports.sourceTransitGatewayAttachmentId(String sourceTransitGatewayAttachmentId) The ID of the source attachment through which traffic enters a transit gateway.sourceTransitGatewayAttachmentType(String sourceTransitGatewayAttachmentType) transitGatewayMeteringPolicyId(String transitGatewayMeteringPolicyId) The ID of the transit gateway metering policy for which the entry is being created.
-
Method Details
-
create
@Stability(Stable) public static CfnTransitGatewayMeteringPolicyEntry.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
CfnTransitGatewayMeteringPolicyEntry.Builder.
-
meteredAccount
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntry.Builder meteredAccount(String meteredAccount) The AWS account ID to which the metered traffic is attributed.- Parameters:
meteredAccount- The AWS account ID to which the metered traffic is attributed. This parameter is required.- Returns:
this- See Also:
-
policyRuleNumber
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntry.Builder policyRuleNumber(Number policyRuleNumber) The rule number of the metering policy entry.- Parameters:
policyRuleNumber- The rule number of the metering policy entry. This parameter is required.- Returns:
this- See Also:
-
transitGatewayMeteringPolicyId
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntry.Builder transitGatewayMeteringPolicyId(String transitGatewayMeteringPolicyId) The ID of the transit gateway metering policy for which the entry is being created.- Parameters:
transitGatewayMeteringPolicyId- The ID of the transit gateway metering policy for which the entry is being created. This parameter is required.- Returns:
this- See Also:
-
destinationCidrBlock
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntry.Builder destinationCidrBlock(String destinationCidrBlock) Describes an IPv4 CIDR block.- Parameters:
destinationCidrBlock- Describes an IPv4 CIDR block. This parameter is required.- Returns:
this- See Also:
-
destinationPortRange
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntry.Builder destinationPortRange(String destinationPortRange) Describes a range of ports.- Parameters:
destinationPortRange- Describes a range of ports. This parameter is required.- Returns:
this- See Also:
-
destinationTransitGatewayAttachmentId
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntry.Builder destinationTransitGatewayAttachmentId(String destinationTransitGatewayAttachmentId) The ID of the source attachment through which traffic leaves a transit gateway.- Parameters:
destinationTransitGatewayAttachmentId- The ID of the source attachment through which traffic leaves a transit gateway. This parameter is required.- Returns:
this- See Also:
-
destinationTransitGatewayAttachmentType
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntry.Builder destinationTransitGatewayAttachmentType(String destinationTransitGatewayAttachmentType) - Parameters:
destinationTransitGatewayAttachmentType- This parameter is required.- Returns:
this- See Also:
-
protocol
The protocol of the traffic.- Parameters:
protocol- The protocol of the traffic. This parameter is required.- Returns:
this- See Also:
-
sourceCidrBlock
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntry.Builder sourceCidrBlock(String sourceCidrBlock) Describes an IPv4 CIDR block.- Parameters:
sourceCidrBlock- Describes an IPv4 CIDR block. This parameter is required.- Returns:
this- See Also:
-
sourcePortRange
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntry.Builder sourcePortRange(String sourcePortRange) Describes a range of ports.- Parameters:
sourcePortRange- Describes a range of ports. This parameter is required.- Returns:
this- See Also:
-
sourceTransitGatewayAttachmentId
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntry.Builder sourceTransitGatewayAttachmentId(String sourceTransitGatewayAttachmentId) The ID of the source attachment through which traffic enters a transit gateway.- Parameters:
sourceTransitGatewayAttachmentId- The ID of the source attachment through which traffic enters a transit gateway. This parameter is required.- Returns:
this- See Also:
-
sourceTransitGatewayAttachmentType
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntry.Builder sourceTransitGatewayAttachmentType(String sourceTransitGatewayAttachmentType) - Parameters:
sourceTransitGatewayAttachmentType- This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayMeteringPolicyEntry>- Returns:
- a newly built instance of
CfnTransitGatewayMeteringPolicyEntry.
-