Class Policy


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

      • Policy

        public Policy()
    • Method Detail

      • setId

        public void setId​(String id)
      • creationDate

        public Policy creationDate​(Long creationDate)
      • getCreationDate

        @Nullable
        public Long getCreationDate()
        Unix Epoch in seconds
        Returns:
        creationDate
      • setCreationDate

        public void setCreationDate​(Long creationDate)
      • addStatementItem

        public Policy addStatementItem​(Statement statementItem)
      • setStatement

        public void setStatement​(List<Statement> statement)
      • 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 Policy
      • fromJson

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

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