Class VoiceApiError


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2023-02-21T09:43:53.001100-05:00[America/New_York]")
    public class VoiceApiError
    extends Object
    VoiceApiError
    • Constructor Detail

      • VoiceApiError

        public VoiceApiError()
    • Method Detail

      • getType

        @Nullable
        public String getType()
        Get type
        Returns:
        type
      • setType

        public void setType​(String type)
      • getDescription

        @Nullable
        public String getDescription()
        Get description
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
      • getId

        @Nullable
        public String getId()
        Get id
        Returns:
        id
      • setId

        public void setId​(String id)
      • 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 VoiceApiError
      • fromJson

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

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