Class CfnTransitGatewayMeteringPolicyEntryProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayMeteringPolicyEntryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayMeteringPolicyEntryProps>
- Enclosing interface:
CfnTransitGatewayMeteringPolicyEntryProps
@Stability(Stable)
public static final class CfnTransitGatewayMeteringPolicyEntryProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayMeteringPolicyEntryProps>
A builder for
CfnTransitGatewayMeteringPolicyEntryProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationCidrBlock(String destinationCidrBlock) Sets the value ofCfnTransitGatewayMeteringPolicyEntryProps.getDestinationCidrBlock()destinationPortRange(String destinationPortRange) Sets the value ofCfnTransitGatewayMeteringPolicyEntryProps.getDestinationPortRange()destinationTransitGatewayAttachmentId(String destinationTransitGatewayAttachmentId) destinationTransitGatewayAttachmentType(String destinationTransitGatewayAttachmentType) meteredAccount(String meteredAccount) Sets the value ofCfnTransitGatewayMeteringPolicyEntryProps.getMeteredAccount()policyRuleNumber(Number policyRuleNumber) Sets the value ofCfnTransitGatewayMeteringPolicyEntryProps.getPolicyRuleNumber()Sets the value ofCfnTransitGatewayMeteringPolicyEntryProps.getProtocol()sourceCidrBlock(String sourceCidrBlock) Sets the value ofCfnTransitGatewayMeteringPolicyEntryProps.getSourceCidrBlock()sourcePortRange(String sourcePortRange) Sets the value ofCfnTransitGatewayMeteringPolicyEntryProps.getSourcePortRange()sourceTransitGatewayAttachmentId(String sourceTransitGatewayAttachmentId) sourceTransitGatewayAttachmentType(String sourceTransitGatewayAttachmentType) transitGatewayMeteringPolicyId(String transitGatewayMeteringPolicyId)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
meteredAccount
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntryProps.Builder meteredAccount(String meteredAccount) Sets the value ofCfnTransitGatewayMeteringPolicyEntryProps.getMeteredAccount()- Parameters:
meteredAccount- The AWS account ID to which the metered traffic is attributed. This parameter is required.- Returns:
this
-
policyRuleNumber
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntryProps.Builder policyRuleNumber(Number policyRuleNumber) Sets the value ofCfnTransitGatewayMeteringPolicyEntryProps.getPolicyRuleNumber()- Parameters:
policyRuleNumber- The rule number of the metering policy entry. This parameter is required.- Returns:
this
-
transitGatewayMeteringPolicyId
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntryProps.Builder transitGatewayMeteringPolicyId(String transitGatewayMeteringPolicyId) - Parameters:
transitGatewayMeteringPolicyId- The ID of the transit gateway metering policy for which the entry is being created. This parameter is required.- Returns:
this
-
destinationCidrBlock
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntryProps.Builder destinationCidrBlock(String destinationCidrBlock) Sets the value ofCfnTransitGatewayMeteringPolicyEntryProps.getDestinationCidrBlock()- Parameters:
destinationCidrBlock- Describes an IPv4 CIDR block.- Returns:
this
-
destinationPortRange
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntryProps.Builder destinationPortRange(String destinationPortRange) Sets the value ofCfnTransitGatewayMeteringPolicyEntryProps.getDestinationPortRange()- Parameters:
destinationPortRange- Describes a range of ports.- Returns:
this
-
destinationTransitGatewayAttachmentId
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntryProps.Builder destinationTransitGatewayAttachmentId(String destinationTransitGatewayAttachmentId) Sets the value ofCfnTransitGatewayMeteringPolicyEntryProps.getDestinationTransitGatewayAttachmentId()- Parameters:
destinationTransitGatewayAttachmentId- The ID of the source attachment through which traffic leaves a transit gateway.- Returns:
this
-
destinationTransitGatewayAttachmentType
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntryProps.Builder destinationTransitGatewayAttachmentType(String destinationTransitGatewayAttachmentType) Sets the value ofCfnTransitGatewayMeteringPolicyEntryProps.getDestinationTransitGatewayAttachmentType()- Parameters:
destinationTransitGatewayAttachmentType- the value to be set.- Returns:
this
-
protocol
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntryProps.Builder protocol(String protocol) Sets the value ofCfnTransitGatewayMeteringPolicyEntryProps.getProtocol()- Parameters:
protocol- The protocol of the traffic.- Returns:
this
-
sourceCidrBlock
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntryProps.Builder sourceCidrBlock(String sourceCidrBlock) Sets the value ofCfnTransitGatewayMeteringPolicyEntryProps.getSourceCidrBlock()- Parameters:
sourceCidrBlock- Describes an IPv4 CIDR block.- Returns:
this
-
sourcePortRange
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntryProps.Builder sourcePortRange(String sourcePortRange) Sets the value ofCfnTransitGatewayMeteringPolicyEntryProps.getSourcePortRange()- Parameters:
sourcePortRange- Describes a range of ports.- Returns:
this
-
sourceTransitGatewayAttachmentId
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntryProps.Builder sourceTransitGatewayAttachmentId(String sourceTransitGatewayAttachmentId) - Parameters:
sourceTransitGatewayAttachmentId- The ID of the source attachment through which traffic enters a transit gateway.- Returns:
this
-
sourceTransitGatewayAttachmentType
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntryProps.Builder sourceTransitGatewayAttachmentType(String sourceTransitGatewayAttachmentType) - Parameters:
sourceTransitGatewayAttachmentType- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayMeteringPolicyEntryProps>- Returns:
- a new instance of
CfnTransitGatewayMeteringPolicyEntryProps - Throws:
NullPointerException- if any required attribute was not provided
-