Class CfnSubnetCidrReservationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnSubnetCidrReservationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubnetCidrReservationMixinProps>
- Enclosing interface:
CfnSubnetCidrReservationMixinProps
@Stability(Stable)
public static final class CfnSubnetCidrReservationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubnetCidrReservationMixinProps>
A builder for
CfnSubnetCidrReservationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSubnetCidrReservationMixinProps.getCidr()description(String description) Sets the value ofCfnSubnetCidrReservationMixinProps.getDescription()reservationType(String reservationType) Sets the value ofCfnSubnetCidrReservationMixinProps.getReservationType()Sets the value ofCfnSubnetCidrReservationMixinProps.getSubnetId()Sets the value ofCfnSubnetCidrReservationMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidr
Sets the value ofCfnSubnetCidrReservationMixinProps.getCidr()- Parameters:
cidr- The IPv4 or IPv6 CIDR range to reserve. Must lie inside the subnet's CIDR block and must not overlap an existing reservation. Supply an IPv6 range exactly as the service returns it: Amazon EC2 stores an IPv6 CIDR in RFC 5952 compressed form, and a noncanonical spelling of the same range is reported as drift because this property is create-only and read back.- Returns:
this
-
description
@Stability(Stable) public CfnSubnetCidrReservationMixinProps.Builder description(String description) Sets the value ofCfnSubnetCidrReservationMixinProps.getDescription()- Parameters:
description- The description of the subnet CIDR reservation.- Returns:
this
-
reservationType
@Stability(Stable) public CfnSubnetCidrReservationMixinProps.Builder reservationType(String reservationType) Sets the value ofCfnSubnetCidrReservationMixinProps.getReservationType()- Parameters:
reservationType- The type of reservation. A prefix reservation is used for an IPv6 prefix delegated to a network interface; an explicit reservation is used for a range that Amazon EC2 must not assign automatically.- Returns:
this
-
subnetId
Sets the value ofCfnSubnetCidrReservationMixinProps.getSubnetId()- Parameters:
subnetId- The identifier of the subnet the CIDR range is reserved in.- Returns:
this
-
tags
@Stability(Stable) public CfnSubnetCidrReservationMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnSubnetCidrReservationMixinProps.getTags()- Parameters:
tags- The tags assigned to the subnet CIDR reservation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubnetCidrReservationMixinProps>- Returns:
- a new instance of
CfnSubnetCidrReservationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-