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

org.openmetadata.schema.api.AddGlossaryToAssetsRequest Maven / Gradle / Ivy

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

package org.openmetadata.schema.api;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.processing.Generated;
import javax.validation.Valid;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonValue;
import org.openmetadata.schema.type.EntityReference;
import org.openmetadata.schema.type.TagLabel;


/**
 * AddGlossaryToAssetsRequest
 * 

* Create Request for adding a glossary to assets * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "operation", "dryRun", "glossaryTags", "assets" }) @Generated("jsonschema2pojo") public class AddGlossaryToAssetsRequest { /** * Operation to be performed * */ @JsonProperty("operation") @JsonPropertyDescription("Operation to be performed") private AddGlossaryToAssetsRequest.Operation operation; /** * If true, the request will be validated but no changes will be made * */ @JsonProperty("dryRun") @JsonPropertyDescription("If true, the request will be validated but no changes will be made") private Boolean dryRun = true; /** * Glossary Tags to be added * */ @JsonProperty("glossaryTags") @JsonPropertyDescription("Glossary Tags to be added") @Valid private List glossaryTags = null; /** * Entity Reference List *

* This schema defines the EntityReferenceList type used for referencing an entity. EntityReference is used for capturing relationships from one entity to another. For example, a table has an attribute called database of type EntityReference that captures the relationship of a table `belongs to a` database. * */ @JsonProperty("assets") @JsonPropertyDescription("This schema defines the EntityReferenceList type used for referencing an entity. EntityReference is used for capturing relationships from one entity to another. For example, a table has an attribute called database of type EntityReference that captures the relationship of a table `belongs to a` database.") @Valid private List assets = null; /** * Operation to be performed * */ @JsonProperty("operation") public AddGlossaryToAssetsRequest.Operation getOperation() { return operation; } /** * Operation to be performed * */ @JsonProperty("operation") public void setOperation(AddGlossaryToAssetsRequest.Operation operation) { this.operation = operation; } public AddGlossaryToAssetsRequest withOperation(AddGlossaryToAssetsRequest.Operation operation) { this.operation = operation; return this; } /** * If true, the request will be validated but no changes will be made * */ @JsonProperty("dryRun") public Boolean getDryRun() { return dryRun; } /** * If true, the request will be validated but no changes will be made * */ @JsonProperty("dryRun") public void setDryRun(Boolean dryRun) { this.dryRun = dryRun; } public AddGlossaryToAssetsRequest withDryRun(Boolean dryRun) { this.dryRun = dryRun; return this; } /** * Glossary Tags to be added * */ @JsonProperty("glossaryTags") public List getGlossaryTags() { return glossaryTags; } /** * Glossary Tags to be added * */ @JsonProperty("glossaryTags") public void setGlossaryTags(List glossaryTags) { this.glossaryTags = glossaryTags; } public AddGlossaryToAssetsRequest withGlossaryTags(List glossaryTags) { this.glossaryTags = glossaryTags; return this; } /** * Entity Reference List *

* This schema defines the EntityReferenceList type used for referencing an entity. EntityReference is used for capturing relationships from one entity to another. For example, a table has an attribute called database of type EntityReference that captures the relationship of a table `belongs to a` database. * */ @JsonProperty("assets") public List getAssets() { return assets; } /** * Entity Reference List *

* This schema defines the EntityReferenceList type used for referencing an entity. EntityReference is used for capturing relationships from one entity to another. For example, a table has an attribute called database of type EntityReference that captures the relationship of a table `belongs to a` database. * */ @JsonProperty("assets") public void setAssets(List assets) { this.assets = assets; } public AddGlossaryToAssetsRequest withAssets(List assets) { this.assets = assets; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(AddGlossaryToAssetsRequest.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("operation"); sb.append('='); sb.append(((this.operation == null)?"":this.operation)); sb.append(','); sb.append("dryRun"); sb.append('='); sb.append(((this.dryRun == null)?"":this.dryRun)); sb.append(','); sb.append("glossaryTags"); sb.append('='); sb.append(((this.glossaryTags == null)?"":this.glossaryTags)); sb.append(','); sb.append("assets"); sb.append('='); sb.append(((this.assets == null)?"":this.assets)); 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.glossaryTags == null)? 0 :this.glossaryTags.hashCode())); result = ((result* 31)+((this.dryRun == null)? 0 :this.dryRun.hashCode())); result = ((result* 31)+((this.assets == null)? 0 :this.assets.hashCode())); result = ((result* 31)+((this.operation == null)? 0 :this.operation.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof AddGlossaryToAssetsRequest) == false) { return false; } AddGlossaryToAssetsRequest rhs = ((AddGlossaryToAssetsRequest) other); return (((((this.glossaryTags == rhs.glossaryTags)||((this.glossaryTags!= null)&&this.glossaryTags.equals(rhs.glossaryTags)))&&((this.dryRun == rhs.dryRun)||((this.dryRun!= null)&&this.dryRun.equals(rhs.dryRun))))&&((this.assets == rhs.assets)||((this.assets!= null)&&this.assets.equals(rhs.assets))))&&((this.operation == rhs.operation)||((this.operation!= null)&&this.operation.equals(rhs.operation)))); } /** * Operation to be performed * */ @Generated("jsonschema2pojo") public enum Operation { ADD_ASSETS("AddAssets"), ADD_GLOSSARY_TAGS("AddGlossaryTags"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (AddGlossaryToAssetsRequest.Operation c: values()) { CONSTANTS.put(c.value, c); } } Operation(String value) { this.value = value; } @Override public String toString() { return this.value; } @JsonValue public String value() { return this.value; } @JsonCreator public static AddGlossaryToAssetsRequest.Operation fromValue(String value) { AddGlossaryToAssetsRequest.Operation constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy