Enum GetListAction.ApiField

    • Enum Constant Detail

      • STRING_SERVER_COUNT

        public static final GetListAction.ApiField STRING_SERVER_COUNT
        Name of the field for the server count. Example: server_count
        Since:
        5.2.0
      • STRING_SHARD_ID

        public static final GetListAction.ApiField STRING_SHARD_ID
        Name of the field for the shard id. Example: shard_id
        Since:
        5.2.0
      • STRING_SHARD_COUNT

        public static final GetListAction.ApiField STRING_SHARD_COUNT
        Name of the field for the shard count. Example: shard_count
        Since:
        5.2.0
      • STRING_SHARDS

        public static final GetListAction.ApiField STRING_SHARDS
        Name of the field for the shards. Example: shards
        Since:
        5.2.0
      • URL_ALL

        public static final GetListAction.ApiField URL_ALL
        URL to GET all listed bots on a bot list.
        Since:
        5.2.0
      • URL_DOCS

        public static final GetListAction.ApiField URL_DOCS
        URL to view the API documentation of the bot list
        Since:
        5.2.0
      • URL_GET

        public static final GetListAction.ApiField URL_GET
        URL to GET information about a single bot listed on the bot list.
        Since:
        5.2.0
      • URL_POST

        public static final GetListAction.ApiField URL_POST
        URL to POST the server count to a bot list.
        Since:
        5.2.0
    • Method Detail

      • values

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

        public static GetListAction.ApiField 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
      • getApiField

        public String getApiField()