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

org.openmetadata.schema.entity.app.CreateApp Maven / Gradle / Ivy

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

package org.openmetadata.schema.entity.app;

import java.util.List;
import javax.annotation.processing.Generated;
import javax.validation.Valid;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
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 org.openmetadata.schema.CreateEntity;
import org.openmetadata.schema.type.EntityReference;


/**
 * CreateAppRequest
 * 

* This schema defines the create applications request for Open-Metadata. * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "name", "displayName", "description", "owners", "bot", "appConfiguration", "appSchedule", "domain" }) @Generated("jsonschema2pojo") public class CreateApp implements CreateEntity { /** * Name that identifies an entity. * */ @JsonProperty("name") @JsonPropertyDescription("Name that identifies an entity.") @Pattern(regexp = "^((?!::).)*$") @Size(min = 1, max = 256) private String name; /** * Display Name for the application. * */ @JsonProperty("displayName") @JsonPropertyDescription("Display Name for the application.") private String displayName; /** * Text in Markdown format.@om-field-type * */ @JsonProperty("description") @JsonPropertyDescription("Text in Markdown format.") private String description; /** * 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("owners") @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 owners = null; /** * A unique name that identifies an entity. Example for table 'DatabaseService.Database.Schema.Table'. * */ @JsonProperty("bot") @JsonPropertyDescription("A unique name that identifies an entity. Example for table 'DatabaseService.Database.Schema.Table'.") @Size(min = 1, max = 3072) private String bot; /** * Application Configuration object. * */ @JsonProperty("appConfiguration") @JsonPropertyDescription("Application Configuration object.") private Object appConfiguration; /** * This schema defines the type of application. * */ @JsonProperty("appSchedule") @JsonPropertyDescription("This schema defines the type of application.") private AppSchedule appSchedule; /** * Fully qualified name of the domain the Table belongs to. * */ @JsonProperty("domain") @JsonPropertyDescription("Fully qualified name of the domain the Table belongs to.") private String domain; /** * Name that identifies an entity. * */ @JsonProperty("name") public String getName() { return name; } /** * Name that identifies an entity. * */ @JsonProperty("name") public void setName(String name) { this.name = name; } public CreateApp withName(String name) { this.name = name; return this; } /** * Display Name for the application. * */ @JsonProperty("displayName") public String getDisplayName() { return displayName; } /** * Display Name for the application. * */ @JsonProperty("displayName") public void setDisplayName(String displayName) { this.displayName = displayName; } public CreateApp withDisplayName(String displayName) { this.displayName = displayName; return this; } /** * Text in Markdown format.@om-field-type * */ @JsonProperty("description") public String getDescription() { return description; } /** * Text in Markdown format.@om-field-type * */ @JsonProperty("description") public void setDescription(String description) { this.description = description; } public CreateApp withDescription(String description) { this.description = description; 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("owners") public List getOwners() { return owners; } /** * 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("owners") public void setOwners(List owners) { this.owners = owners; } public CreateApp withOwners(List owners) { this.owners = owners; return this; } /** * A unique name that identifies an entity. Example for table 'DatabaseService.Database.Schema.Table'. * */ @JsonProperty("bot") public String getBot() { return bot; } /** * A unique name that identifies an entity. Example for table 'DatabaseService.Database.Schema.Table'. * */ @JsonProperty("bot") public void setBot(String bot) { this.bot = bot; } public CreateApp withBot(String bot) { this.bot = bot; return this; } /** * Application Configuration object. * */ @JsonProperty("appConfiguration") public Object getAppConfiguration() { return appConfiguration; } /** * Application Configuration object. * */ @JsonProperty("appConfiguration") public void setAppConfiguration(Object appConfiguration) { this.appConfiguration = appConfiguration; } public CreateApp withAppConfiguration(Object appConfiguration) { this.appConfiguration = appConfiguration; return this; } /** * This schema defines the type of application. * */ @JsonProperty("appSchedule") public AppSchedule getAppSchedule() { return appSchedule; } /** * This schema defines the type of application. * */ @JsonProperty("appSchedule") public void setAppSchedule(AppSchedule appSchedule) { this.appSchedule = appSchedule; } public CreateApp withAppSchedule(AppSchedule appSchedule) { this.appSchedule = appSchedule; return this; } /** * Fully qualified name of the domain the Table belongs to. * */ @JsonProperty("domain") public String getDomain() { return domain; } /** * Fully qualified name of the domain the Table belongs to. * */ @JsonProperty("domain") public void setDomain(String domain) { this.domain = domain; } public CreateApp withDomain(String domain) { this.domain = domain; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(CreateApp.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("name"); sb.append('='); sb.append(((this.name == null)?"":this.name)); sb.append(','); sb.append("displayName"); sb.append('='); sb.append(((this.displayName == null)?"":this.displayName)); sb.append(','); sb.append("description"); sb.append('='); sb.append(((this.description == null)?"":this.description)); sb.append(','); sb.append("owners"); sb.append('='); sb.append(((this.owners == null)?"":this.owners)); sb.append(','); sb.append("bot"); sb.append('='); sb.append(((this.bot == null)?"":this.bot)); sb.append(','); sb.append("appConfiguration"); sb.append('='); sb.append(((this.appConfiguration == null)?"":this.appConfiguration)); sb.append(','); sb.append("appSchedule"); sb.append('='); sb.append(((this.appSchedule == null)?"":this.appSchedule)); sb.append(','); sb.append("domain"); sb.append('='); sb.append(((this.domain == null)?"":this.domain)); 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.appSchedule == null)? 0 :this.appSchedule.hashCode())); result = ((result* 31)+((this.displayName == null)? 0 :this.displayName.hashCode())); result = ((result* 31)+((this.bot == null)? 0 :this.bot.hashCode())); result = ((result* 31)+((this.domain == null)? 0 :this.domain.hashCode())); result = ((result* 31)+((this.name == null)? 0 :this.name.hashCode())); result = ((result* 31)+((this.description == null)? 0 :this.description.hashCode())); result = ((result* 31)+((this.owners == null)? 0 :this.owners.hashCode())); result = ((result* 31)+((this.appConfiguration == null)? 0 :this.appConfiguration.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof CreateApp) == false) { return false; } CreateApp rhs = ((CreateApp) other); return (((((((((this.appSchedule == rhs.appSchedule)||((this.appSchedule!= null)&&this.appSchedule.equals(rhs.appSchedule)))&&((this.displayName == rhs.displayName)||((this.displayName!= null)&&this.displayName.equals(rhs.displayName))))&&((this.bot == rhs.bot)||((this.bot!= null)&&this.bot.equals(rhs.bot))))&&((this.domain == rhs.domain)||((this.domain!= null)&&this.domain.equals(rhs.domain))))&&((this.name == rhs.name)||((this.name!= null)&&this.name.equals(rhs.name))))&&((this.description == rhs.description)||((this.description!= null)&&this.description.equals(rhs.description))))&&((this.owners == rhs.owners)||((this.owners!= null)&&this.owners.equals(rhs.owners))))&&((this.appConfiguration == rhs.appConfiguration)||((this.appConfiguration!= null)&&this.appConfiguration.equals(rhs.appConfiguration)))); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy