Class CreateAllowedOriginRequest


  • public class CreateAllowedOriginRequest
    extends Object
    CreateAllowedOriginRequest
    • Constructor Detail

      • CreateAllowedOriginRequest

        public CreateAllowedOriginRequest()
    • Method Detail

      • getLinks

        public Links getLinks()
        Get links
        Returns:
        links
      • setLinks

        public void setLinks​(Links links)
      • getDomain

        public String getDomain()
        Domain of the allowed origin.
        Returns:
        domain
      • setDomain

        public void setDomain​(String domain)
      • getId

        public String getId()
        Unique identifier of the allowed origin.
        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 CreateAllowedOriginRequest
      • fromJson

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

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