Enum SourceAPI

    • Enum Constant Detail

      • GRAPHQL

        public static final SourceAPI GRAPHQL
        Used for GraphQL API.
      • CQL

        public static final SourceAPI CQL
        Used for CQL traffic (and gRPC).
      • REST

        public static final SourceAPI REST
        Used for REST and Docs API, as historically they were one.
      • JSON

        public static final SourceAPI JSON
        Used for JSON API.
    • Method Detail

      • values

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

        public static SourceAPI 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
      • getName

        public String getName()