Enum 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 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 name
        NullPointerException - if the argument is null