Enum Class YtApiV3Endpoint

java.lang.Object
java.lang.Enum<YtApiV3Endpoint>
io.github.thoroldvix.api.YtApiV3Endpoint
All Implemented Interfaces:
Serializable, Comparable<YtApiV3Endpoint>, Constable

public enum YtApiV3Endpoint extends Enum<YtApiV3Endpoint>
The YouTube API V3 endpoints. Used by the YoutubeClient.
  • Enum Constant Details

  • Method Details

    • values

      public static YtApiV3Endpoint[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static YtApiV3Endpoint valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • url

      public String url()
      Returns:
      The URL of the endpoint.
    • url

      public String url(Map<String,String> params)
      Parameters:
      params - A map of parameters to include in the request.
      Returns:
      The URL of the endpoint with the specified parameters.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<YtApiV3Endpoint>