Class AuthorizedApiRequestModel


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.7.0")
    public class AuthorizedApiRequestModel
    extends Object
    AuthorizedApiRequestModel
    • Constructor Detail

      • AuthorizedApiRequestModel

        public AuthorizedApiRequestModel()
    • Method Detail

      • getPath

        @Nullable
        public String getPath()
        The path and query of the API request you want to pre-authorize, omitting the leading /api/
        Returns:
        path
      • setPath

        public void setPath​(String path)
      • getTtl

        @Nullable
        public Integer getTtl()
        Seconds until this AuthorizedApiRequest should expire, 3600 if omitted; values greater than 86400 will not be honored
        Returns:
        ttl
      • setTtl

        public void setTtl​(Integer ttl)
      • hashCode

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

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to AuthorizedApiRequestModel
      • fromJson

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

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