Package org.cdk8s.plus23.k8s
Enum IoK8SApiCoreV1ServiceSpecSessionAffinity
- java.lang.Object
-
- java.lang.Enum<IoK8SApiCoreV1ServiceSpecSessionAffinity>
-
- org.cdk8s.plus23.k8s.IoK8SApiCoreV1ServiceSpecSessionAffinity
-
- All Implemented Interfaces:
Serializable
,Comparable<IoK8SApiCoreV1ServiceSpecSessionAffinity>
@Generated(value="jsii-pacmak/1.69.0 (build f656c31)", date="2022-10-15T03:08:35.339Z") @Stability(Stable) public enum IoK8SApiCoreV1ServiceSpecSessionAffinity extends Enum<IoK8SApiCoreV1ServiceSpecSessionAffinity>
Supports "ClientIP" and "None".Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
Possible enum values:
"ClientIP"
is the Client IP based."None"
- no session affinity.
Default: None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IoK8SApiCoreV1ServiceSpecSessionAffinity
valueOf(String name)
Returns the enum constant of this type with the specified name.static IoK8SApiCoreV1ServiceSpecSessionAffinity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLIENT_IP
@Stability(Stable) public static final IoK8SApiCoreV1ServiceSpecSessionAffinity CLIENT_IP
ClientIP.
-
NONE
@Stability(Stable) public static final IoK8SApiCoreV1ServiceSpecSessionAffinity NONE
None.
-
-
Method Detail
-
values
public static IoK8SApiCoreV1ServiceSpecSessionAffinity[] 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 (IoK8SApiCoreV1ServiceSpecSessionAffinity c : IoK8SApiCoreV1ServiceSpecSessionAffinity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IoK8SApiCoreV1ServiceSpecSessionAffinity 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
-
-