Class Variant


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class Variant
    extends Object
    Variant
    • Constructor Detail

      • Variant

        public Variant()
    • Method Detail

      • getBitRate

        @Nullable
        public Integer getBitRate()
        The bit rate of the media.
        Returns:
        bitRate
      • setBitRate

        public void setBitRate​(Integer bitRate)
      • contentType

        public Variant contentType​(String contentType)
      • getContentType

        @Nullable
        public String getContentType()
        The content type of the media.
        Returns:
        contentType
      • setContentType

        public void setContentType​(String contentType)
      • getUrl

        @Nullable
        public URL getUrl()
        The url to the media.
        Returns:
        url
      • setUrl

        public void setUrl​(URL url)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to Variant
      • fromJson

        public static Variant fromJson​(String jsonString)
                                throws IOException
        Create an instance of Variant given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Variant
        Throws:
        IOException - if the JSON string is invalid with respect to Variant
      • toJson

        public String toJson()
        Convert an instance of Variant to an JSON string
        Returns:
        JSON string