Enum CredentialTypeForMetrics

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CredentialTypeForMetrics>

    public enum CredentialTypeForMetrics
    extends java.lang.Enum<CredentialTypeForMetrics>
    Defines the different types of credentials that can be used for metrics.

    Each credential type is associated with a label that is used for reporting purposes. Add new enum constant only when corresponding configs established.

    Credentials with type CredentialTypeForMetrics.DO_NOT_SEND is default value for credential implementations that do not set type specifically. It is not expected to send metrics.

    See Also:
    getLabel()
    • Field Detail

      • label

        private final java.lang.String label
    • Constructor Detail

      • CredentialTypeForMetrics

        private CredentialTypeForMetrics​(java.lang.String label)
    • Method Detail

      • values

        public static CredentialTypeForMetrics[] 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 (CredentialTypeForMetrics c : CredentialTypeForMetrics.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CredentialTypeForMetrics valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getLabel

        public java.lang.String getLabel()