Class CfnSubnetCidrReservationPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnSubnetCidrReservationPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubnetCidrReservationPropsMixin>
- Enclosing class:
CfnSubnetCidrReservationPropsMixin
@Stability(Stable)
public static final class CfnSubnetCidrReservationPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubnetCidrReservationPropsMixin>
A fluent builder for
CfnSubnetCidrReservationPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()The IPv4 or IPv6 CIDR range to reserve.create()create(CfnPropertyMixinOptions options) description(String description) The description of the subnet CIDR reservation.reservationType(String reservationType) The type of reservation.The identifier of the subnet the CIDR range is reserved in.The tags assigned to the subnet CIDR reservation.
-
Method Details
-
create
@Stability(Stable) public static CfnSubnetCidrReservationPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnSubnetCidrReservationPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnSubnetCidrReservationPropsMixin.Builder.
-
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.
- Parameters:
cidr- The IPv4 or IPv6 CIDR range to reserve. This parameter is required.- Returns:
this- See Also:
-
description
@Stability(Stable) public CfnSubnetCidrReservationPropsMixin.Builder description(String description) The description of the subnet CIDR reservation.- Parameters:
description- The description of the subnet CIDR reservation. This parameter is required.- Returns:
this- See Also:
-
reservationType
@Stability(Stable) public CfnSubnetCidrReservationPropsMixin.Builder reservationType(String 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.
- Parameters:
reservationType- The type of reservation. This parameter is required.- Returns:
this- See Also:
-
subnetId
The identifier of the subnet the CIDR range is reserved in.- Parameters:
subnetId- The identifier of the subnet the CIDR range is reserved in. This parameter is required.- Returns:
this- See Also:
-
tags
@Stability(Stable) public CfnSubnetCidrReservationPropsMixin.Builder tags(List<? extends CfnTag> tags) The tags assigned to the subnet CIDR reservation.- Parameters:
tags- The tags assigned to the subnet CIDR reservation. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubnetCidrReservationPropsMixin>- Returns:
- a newly built instance of
CfnSubnetCidrReservationPropsMixin.
-