Package org.cdk8s.plus25
Class PodConnectionsAllowFromOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus25.PodConnectionsAllowFromOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PodConnectionsAllowFromOptions>
- Enclosing interface:
- PodConnectionsAllowFromOptions
@Stability(Stable) public static final class PodConnectionsAllowFromOptions.Builder extends Object implements software.amazon.jsii.Builder<PodConnectionsAllowFromOptions>
A builder forPodConnectionsAllowFromOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodConnectionsAllowFromOptionsbuild()Builds the configured instance.PodConnectionsAllowFromOptions.Builderisolation(PodConnectionsIsolation isolation)Sets the value ofPodConnectionsAllowFromOptions.getIsolation()PodConnectionsAllowFromOptions.Builderports(List<? extends NetworkPolicyPort> ports)Sets the value ofPodConnectionsAllowFromOptions.getPorts()
-
-
-
Method Detail
-
isolation
@Stability(Stable) public PodConnectionsAllowFromOptions.Builder isolation(PodConnectionsIsolation isolation)
Sets the value ofPodConnectionsAllowFromOptions.getIsolation()- Parameters:
isolation- Which isolation should be applied to establish the connection.- Returns:
this
-
ports
@Stability(Stable) public PodConnectionsAllowFromOptions.Builder ports(List<? extends NetworkPolicyPort> ports)
Sets the value ofPodConnectionsAllowFromOptions.getPorts()- Parameters:
ports- Ports to allow incoming traffic to.- Returns:
this
-
build
@Stability(Stable) public PodConnectionsAllowFromOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PodConnectionsAllowFromOptions>- Returns:
- a new instance of
PodConnectionsAllowFromOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-