Package org.cdk8s.plus25.k8s
Class ClusterCidrSpecV1Alpha1.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.ClusterCidrSpecV1Alpha1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClusterCidrSpecV1Alpha1>
- Enclosing interface:
- ClusterCidrSpecV1Alpha1
@Stability(Stable) public static final class ClusterCidrSpecV1Alpha1.Builder extends Object implements software.amazon.jsii.Builder<ClusterCidrSpecV1Alpha1>
A builder forClusterCidrSpecV1Alpha1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterCidrSpecV1Alpha1build()Builds the configured instance.ClusterCidrSpecV1Alpha1.Builderipv4(String ipv4)Sets the value ofClusterCidrSpecV1Alpha1.getIpv4()ClusterCidrSpecV1Alpha1.Builderipv6(String ipv6)Sets the value ofClusterCidrSpecV1Alpha1.getIpv6()ClusterCidrSpecV1Alpha1.BuildernodeSelector(NodeSelector nodeSelector)Sets the value ofClusterCidrSpecV1Alpha1.getNodeSelector()ClusterCidrSpecV1Alpha1.BuilderperNodeHostBits(Number perNodeHostBits)Sets the value ofClusterCidrSpecV1Alpha1.getPerNodeHostBits()
-
-
-
Method Detail
-
perNodeHostBits
@Stability(Stable) public ClusterCidrSpecV1Alpha1.Builder perNodeHostBits(Number perNodeHostBits)
Sets the value ofClusterCidrSpecV1Alpha1.getPerNodeHostBits()- Parameters:
perNodeHostBits- PerNodeHostBits defines the number of host bits to be configured per node. This parameter is required. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable.- Returns:
this
-
ipv4
@Stability(Stable) public ClusterCidrSpecV1Alpha1.Builder ipv4(String ipv4)
Sets the value ofClusterCidrSpecV1Alpha1.getIpv4()- Parameters:
ipv4- IPv4 defines an IPv4 IP block in CIDR notation(e.g. "10.0.0.0/8"). At least one of IPv4 and IPv6 must be specified. This field is immutable.- Returns:
this
-
ipv6
@Stability(Stable) public ClusterCidrSpecV1Alpha1.Builder ipv6(String ipv6)
Sets the value ofClusterCidrSpecV1Alpha1.getIpv6()- Parameters:
ipv6- IPv6 defines an IPv6 IP block in CIDR notation(e.g. "fd12:3456:789a:1::/64"). At least one of IPv4 and IPv6 must be specified. This field is immutable.- Returns:
this
-
nodeSelector
@Stability(Stable) public ClusterCidrSpecV1Alpha1.Builder nodeSelector(NodeSelector nodeSelector)
Sets the value ofClusterCidrSpecV1Alpha1.getNodeSelector()- Parameters:
nodeSelector- NodeSelector defines which nodes the config is applicable to. An empty or nil NodeSelector selects all nodes. This field is immutable.- Returns:
this
-
build
@Stability(Stable) public ClusterCidrSpecV1Alpha1 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ClusterCidrSpecV1Alpha1>- Returns:
- a new instance of
ClusterCidrSpecV1Alpha1 - Throws:
NullPointerException- if any required attribute was not provided
-
-