Package org.cdk8s.plus25.k8s
Class IpBlock.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.IpBlock.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IpBlockbuild()Builds the configured instance.IpBlock.Buildercidr(String cidr)Sets the value ofIpBlock.getCidr()IpBlock.Builderexcept(List<String> except)Sets the value ofIpBlock.getExcept()
-
-
-
Method Detail
-
cidr
@Stability(Stable) public IpBlock.Builder cidr(String cidr)
Sets the value ofIpBlock.getCidr()- Parameters:
cidr- CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64". This parameter is required.- Returns:
this
-
except
@Stability(Stable) public IpBlock.Builder except(List<String> except)
Sets the value ofIpBlock.getExcept()- Parameters:
except- Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range.- Returns:
this
-
build
@Stability(Stable) public IpBlock build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IpBlock>- Returns:
- a new instance of
IpBlock - Throws:
NullPointerException- if any required attribute was not provided
-
-