Class CfnSubnetCidrReservation.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnSubnetCidrReservation.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubnetCidrReservation>
- Enclosing class:
CfnSubnetCidrReservation
@Stability(Stable)
public static final class CfnSubnetCidrReservation.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubnetCidrReservation>
A fluent builder for
CfnSubnetCidrReservation.-
Method Summary
Modifier and TypeMethodDescriptionbuild()The IPv4 or IPv6 CIDR range to reserve.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 CfnSubnetCidrReservation.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
CfnSubnetCidrReservation.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:
-
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:
-
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:
-
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<CfnSubnetCidrReservation>- Returns:
- a newly built instance of
CfnSubnetCidrReservation.
-