All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openmetadata.schema.configuration.AssetCertificationSettings Maven / Gradle / Ivy

There is a newer version: 1.6.0-rc1
Show newest version

package org.openmetadata.schema.configuration;

import javax.annotation.processing.Generated;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * AssetCertificationSettings
 * 

* This schema defines the Asset Certification Settings. * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "allowedClassification", "validityPeriod" }) @Generated("jsonschema2pojo") public class AssetCertificationSettings { /** * Classification that can be used for certifications. * (Required) * */ @JsonProperty("allowedClassification") @JsonPropertyDescription("Classification that can be used for certifications.") @NotNull private String allowedClassification; /** * ISO 8601 duration for the validity period. * (Required) * */ @JsonProperty("validityPeriod") @JsonPropertyDescription("ISO 8601 duration for the validity period.") @NotNull private String validityPeriod; /** * Classification that can be used for certifications. * (Required) * */ @JsonProperty("allowedClassification") public String getAllowedClassification() { return allowedClassification; } /** * Classification that can be used for certifications. * (Required) * */ @JsonProperty("allowedClassification") public void setAllowedClassification(String allowedClassification) { this.allowedClassification = allowedClassification; } public AssetCertificationSettings withAllowedClassification(String allowedClassification) { this.allowedClassification = allowedClassification; return this; } /** * ISO 8601 duration for the validity period. * (Required) * */ @JsonProperty("validityPeriod") public String getValidityPeriod() { return validityPeriod; } /** * ISO 8601 duration for the validity period. * (Required) * */ @JsonProperty("validityPeriod") public void setValidityPeriod(String validityPeriod) { this.validityPeriod = validityPeriod; } public AssetCertificationSettings withValidityPeriod(String validityPeriod) { this.validityPeriod = validityPeriod; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(AssetCertificationSettings.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("allowedClassification"); sb.append('='); sb.append(((this.allowedClassification == null)?"":this.allowedClassification)); sb.append(','); sb.append("validityPeriod"); sb.append('='); sb.append(((this.validityPeriod == null)?"":this.validityPeriod)); sb.append(','); if (sb.charAt((sb.length()- 1)) == ',') { sb.setCharAt((sb.length()- 1), ']'); } else { sb.append(']'); } return sb.toString(); } @Override public int hashCode() { int result = 1; result = ((result* 31)+((this.allowedClassification == null)? 0 :this.allowedClassification.hashCode())); result = ((result* 31)+((this.validityPeriod == null)? 0 :this.validityPeriod.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof AssetCertificationSettings) == false) { return false; } AssetCertificationSettings rhs = ((AssetCertificationSettings) other); return (((this.allowedClassification == rhs.allowedClassification)||((this.allowedClassification!= null)&&this.allowedClassification.equals(rhs.allowedClassification)))&&((this.validityPeriod == rhs.validityPeriod)||((this.validityPeriod!= null)&&this.validityPeriod.equals(rhs.validityPeriod)))); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy