Class MediaType

java.lang.Object
com.mypurecloud.sdk.v2.model.MediaType
All Implemented Interfaces:
Serializable

public class MediaType extends Object implements Serializable
Media type definition
See Also:
  • Constructor Details

    • MediaType

      public MediaType()
    • MediaType

      public MediaType(Boolean initWithEmptyList)
  • Method Details

    • type

      public MediaType type(String type)
      The media type string as defined by RFC 2046. You can define specific types such as 'image/jpeg', 'video/mpeg', or specify wild cards for a range of types, 'image/*', or all types '*\\/\\*'. See https://www.iana.org/assignments/media-types/media-types.xhtml for a list of registered media types.
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object