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