Package org.cdk8s.plus24
Enum PodConnectionsIsolation
- java.lang.Object
-
- java.lang.Enum<PodConnectionsIsolation>
-
- org.cdk8s.plus24.PodConnectionsIsolation
-
- All Implemented Interfaces:
Serializable
,Comparable<PodConnectionsIsolation>
@Generated(value="jsii-pacmak/1.69.0 (build f656c31)", date="2022-10-09T03:04:24.927Z") @Stability(Stable) public enum PodConnectionsIsolation extends Enum<PodConnectionsIsolation>
Isolation determines which policies are created when allowing connections from a a pod / workload to peers.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PodConnectionsIsolation
valueOf(String name)
Returns the enum constant of this type with the specified name.static PodConnectionsIsolation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POD
@Stability(Stable) public static final PodConnectionsIsolation POD
Only creates network policies that select the pod.
-
PEER
@Stability(Stable) public static final PodConnectionsIsolation PEER
Only creates network policies that select the peer.
-
-
Method Detail
-
values
public static PodConnectionsIsolation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PodConnectionsIsolation c : PodConnectionsIsolation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PodConnectionsIsolation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-