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