org.openmetadata.schema.entity.teams.Team Maven / Gradle / Ivy
package org.openmetadata.schema.entity.teams;
import java.net.URI;
import java.util.List;
import java.util.UUID;
import javax.annotation.processing.Generated;
import javax.validation.Valid;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
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.EntityInterface;
import org.openmetadata.schema.type.ChangeDescription;
import org.openmetadata.schema.type.EntityReference;
import org.openmetadata.schema.type.Profile;
/**
* Team
*
* This schema defines the Team entity. A `Team` is a group of zero or more users and/or other teams. Teams can own zero or more data assets. Hierarchical teams are supported `Organization` -> `BusinessUnit` -> `Division` -> `Department`.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"id",
"teamType",
"name",
"email",
"fullyQualifiedName",
"displayName",
"description",
"version",
"updatedAt",
"updatedBy",
"href",
"profile",
"parents",
"children",
"users",
"childrenCount",
"userCount",
"owns",
"owners",
"isJoinable",
"changeDescription",
"deleted",
"defaultRoles",
"inheritedRoles",
"policies",
"domains"
})
@Generated("jsonschema2pojo")
public class Team implements EntityInterface
{
/**
* Unique id used to identify an entity.
* (Required)
*
*/
@JsonProperty("id")
@JsonPropertyDescription("Unique id used to identify an entity.")
@NotNull
private UUID id;
/**
* Organization is the highest level entity. An Organization has one of more Business Units, Division, Departments, Group, or Users. A Business Unit has one or more Divisions, Departments, Group, or Users. A Division has one or more Divisions, Departments, Group, or Users. A Department has one or more Departments, Group, or Users. A Group has only Users
*
*/
@JsonProperty("teamType")
@JsonPropertyDescription("Organization is the highest level entity. An Organization has one of more Business Units, Division, Departments, Group, or Users. A Business Unit has one or more Divisions, Departments, Group, or Users. A Division has one or more Divisions, Departments, Group, or Users. A Department has one or more Departments, Group, or Users. A Group has only Users")
private org.openmetadata.schema.api.teams.CreateTeam.TeamType teamType = org.openmetadata.schema.api.teams.CreateTeam.TeamType.fromValue("Group");
/**
* Name that identifies an entity.
* (Required)
*
*/
@JsonProperty("name")
@JsonPropertyDescription("Name that identifies an entity.")
@Pattern(regexp = "^((?!::).)*$")
@Size(min = 1, max = 256)
@NotNull
private String name;
/**
* Email address of a user or other entities.@om-field-type
*
*/
@Email
@JsonProperty("email")
@JsonPropertyDescription("Email address of a user or other entities.")
@Pattern(regexp = "^[\\S.!#$%&\u2019*+/=?^_`{|}~-]+@\\S+\\.\\S+$")
@Size(min = 6, max = 127)
private String email;
/**
* A unique name that identifies an entity. Example for table 'DatabaseService.Database.Schema.Table'.
*
*/
@JsonProperty("fullyQualifiedName")
@JsonPropertyDescription("A unique name that identifies an entity. Example for table 'DatabaseService.Database.Schema.Table'.")
@Size(min = 1, max = 3072)
private String fullyQualifiedName;
/**
* Name used for display purposes. Example 'Data Science team'.
*
*/
@JsonProperty("displayName")
@JsonPropertyDescription("Name used for display purposes. Example 'Data Science team'.")
private String displayName;
/**
* Text in Markdown format.@om-field-type
*
*/
@JsonProperty("description")
@JsonPropertyDescription("Text in Markdown format.")
private String description;
/**
* Metadata version of the entity in the form `Major.Minor`. First version always starts from `0.1` when the entity is created. When the backward compatible changes are made to the entity, only the `Minor` version is incremented - example `1.0` is changed to `1.1`. When backward incompatible changes are made the `Major` version is incremented - example `1.1` to `2.0`.
*
*/
@JsonProperty("version")
@JsonPropertyDescription("Metadata version of the entity in the form `Major.Minor`. First version always starts from `0.1` when the entity is created. When the backward compatible changes are made to the entity, only the `Minor` version is incremented - example `1.0` is changed to `1.1`. When backward incompatible changes are made the `Major` version is incremented - example `1.1` to `2.0`.")
private Double version = 0.1D;
/**
* Timestamp in Unix epoch time milliseconds.@om-field-type
*
*/
@JsonProperty("updatedAt")
@JsonPropertyDescription("Timestamp in Unix epoch time milliseconds.")
private Long updatedAt;
/**
* User who made the update.
*
*/
@JsonProperty("updatedBy")
@JsonPropertyDescription("User who made the update.")
private String updatedBy;
/**
* URI that points to a resource.
*
*/
@JsonProperty("href")
@JsonPropertyDescription("URI that points to a resource.")
private URI href;
/**
* Profile
*
* This schema defines the type for a profile of a user, team, or organization.
*
*/
@JsonProperty("profile")
@JsonPropertyDescription("This schema defines the type for a profile of a user, team, or organization.")
@Valid
private Profile profile;
/**
* 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("parents")
@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 parents = 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("children")
@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 children = 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("users")
@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 users = null;
/**
* Total count of Children teams.
*
*/
@JsonProperty("childrenCount")
@JsonPropertyDescription("Total count of Children teams.")
private Integer childrenCount;
/**
* Total count of users that are part of the team.
*
*/
@JsonProperty("userCount")
@JsonPropertyDescription("Total count of users that are part of the team.")
private Integer userCount;
/**
* 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("owns")
@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 owns = 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("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;
/**
* Can any user join this team during sign up? Value of true indicates yes, and false no.
*
*/
@JsonProperty("isJoinable")
@JsonPropertyDescription("Can any user join this team during sign up? Value of true indicates yes, and false no.")
private Boolean isJoinable = true;
/**
* Description of the change.
*
*/
@JsonProperty("changeDescription")
@JsonPropertyDescription("Description of the change.")
@Valid
private ChangeDescription changeDescription;
/**
* When `true` indicates the entity has been soft deleted.
*
*/
@JsonProperty("deleted")
@JsonPropertyDescription("When `true` indicates the entity has been soft deleted.")
private Boolean deleted = false;
/**
* 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("defaultRoles")
@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 defaultRoles = 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("inheritedRoles")
@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 inheritedRoles = 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("policies")
@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 policies = 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("domains")
@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 domains = null;
/**
* Unique id used to identify an entity.
* (Required)
*
*/
@JsonProperty("id")
public UUID getId() {
return id;
}
/**
* Unique id used to identify an entity.
* (Required)
*
*/
@JsonProperty("id")
public void setId(UUID id) {
this.id = id;
}
public Team withId(UUID id) {
this.id = id;
return this;
}
/**
* Organization is the highest level entity. An Organization has one of more Business Units, Division, Departments, Group, or Users. A Business Unit has one or more Divisions, Departments, Group, or Users. A Division has one or more Divisions, Departments, Group, or Users. A Department has one or more Departments, Group, or Users. A Group has only Users
*
*/
@JsonProperty("teamType")
public org.openmetadata.schema.api.teams.CreateTeam.TeamType getTeamType() {
return teamType;
}
/**
* Organization is the highest level entity. An Organization has one of more Business Units, Division, Departments, Group, or Users. A Business Unit has one or more Divisions, Departments, Group, or Users. A Division has one or more Divisions, Departments, Group, or Users. A Department has one or more Departments, Group, or Users. A Group has only Users
*
*/
@JsonProperty("teamType")
public void setTeamType(org.openmetadata.schema.api.teams.CreateTeam.TeamType teamType) {
this.teamType = teamType;
}
public Team withTeamType(org.openmetadata.schema.api.teams.CreateTeam.TeamType teamType) {
this.teamType = teamType;
return this;
}
/**
* Name that identifies an entity.
* (Required)
*
*/
@JsonProperty("name")
public String getName() {
return name;
}
/**
* Name that identifies an entity.
* (Required)
*
*/
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
public Team withName(String name) {
this.name = name;
return this;
}
/**
* Email address of a user or other entities.@om-field-type
*
*/
@JsonProperty("email")
public String getEmail() {
return email;
}
/**
* Email address of a user or other entities.@om-field-type
*
*/
@JsonProperty("email")
public void setEmail(String email) {
this.email = email;
}
public Team withEmail(String email) {
this.email = email;
return this;
}
/**
* A unique name that identifies an entity. Example for table 'DatabaseService.Database.Schema.Table'.
*
*/
@JsonProperty("fullyQualifiedName")
public String getFullyQualifiedName() {
return fullyQualifiedName;
}
/**
* A unique name that identifies an entity. Example for table 'DatabaseService.Database.Schema.Table'.
*
*/
@JsonProperty("fullyQualifiedName")
public void setFullyQualifiedName(String fullyQualifiedName) {
this.fullyQualifiedName = fullyQualifiedName;
}
public Team withFullyQualifiedName(String fullyQualifiedName) {
this.fullyQualifiedName = fullyQualifiedName;
return this;
}
/**
* Name used for display purposes. Example 'Data Science team'.
*
*/
@JsonProperty("displayName")
public String getDisplayName() {
return displayName;
}
/**
* Name used for display purposes. Example 'Data Science team'.
*
*/
@JsonProperty("displayName")
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
public Team 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 Team withDescription(String description) {
this.description = description;
return this;
}
/**
* Metadata version of the entity in the form `Major.Minor`. First version always starts from `0.1` when the entity is created. When the backward compatible changes are made to the entity, only the `Minor` version is incremented - example `1.0` is changed to `1.1`. When backward incompatible changes are made the `Major` version is incremented - example `1.1` to `2.0`.
*
*/
@JsonProperty("version")
public Double getVersion() {
return version;
}
/**
* Metadata version of the entity in the form `Major.Minor`. First version always starts from `0.1` when the entity is created. When the backward compatible changes are made to the entity, only the `Minor` version is incremented - example `1.0` is changed to `1.1`. When backward incompatible changes are made the `Major` version is incremented - example `1.1` to `2.0`.
*
*/
@JsonProperty("version")
public void setVersion(Double version) {
this.version = version;
}
public Team withVersion(Double version) {
this.version = version;
return this;
}
/**
* Timestamp in Unix epoch time milliseconds.@om-field-type
*
*/
@JsonProperty("updatedAt")
public Long getUpdatedAt() {
return updatedAt;
}
/**
* Timestamp in Unix epoch time milliseconds.@om-field-type
*
*/
@JsonProperty("updatedAt")
public void setUpdatedAt(Long updatedAt) {
this.updatedAt = updatedAt;
}
public Team withUpdatedAt(Long updatedAt) {
this.updatedAt = updatedAt;
return this;
}
/**
* User who made the update.
*
*/
@JsonProperty("updatedBy")
public String getUpdatedBy() {
return updatedBy;
}
/**
* User who made the update.
*
*/
@JsonProperty("updatedBy")
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy;
}
public Team withUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy;
return this;
}
/**
* URI that points to a resource.
*
*/
@JsonProperty("href")
public URI getHref() {
return href;
}
/**
* URI that points to a resource.
*
*/
@JsonProperty("href")
public void setHref(URI href) {
this.href = href;
}
public Team withHref(URI href) {
this.href = href;
return this;
}
/**
* Profile
*
* This schema defines the type for a profile of a user, team, or organization.
*
*/
@JsonProperty("profile")
public Profile getProfile() {
return profile;
}
/**
* Profile
*
* This schema defines the type for a profile of a user, team, or organization.
*
*/
@JsonProperty("profile")
public void setProfile(Profile profile) {
this.profile = profile;
}
public Team withProfile(Profile profile) {
this.profile = profile;
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("parents")
public List getParents() {
return parents;
}
/**
* 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("parents")
public void setParents(List parents) {
this.parents = parents;
}
public Team withParents(List parents) {
this.parents = parents;
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("children")
public List getChildren() {
return children;
}
/**
* 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("children")
public void setChildren(List children) {
this.children = children;
}
public Team withChildren(List children) {
this.children = children;
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("users")
public List getUsers() {
return users;
}
/**
* 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("users")
public void setUsers(List users) {
this.users = users;
}
public Team withUsers(List users) {
this.users = users;
return this;
}
/**
* Total count of Children teams.
*
*/
@JsonProperty("childrenCount")
public Integer getChildrenCount() {
return childrenCount;
}
/**
* Total count of Children teams.
*
*/
@JsonProperty("childrenCount")
public void setChildrenCount(Integer childrenCount) {
this.childrenCount = childrenCount;
}
public Team withChildrenCount(Integer childrenCount) {
this.childrenCount = childrenCount;
return this;
}
/**
* Total count of users that are part of the team.
*
*/
@JsonProperty("userCount")
public Integer getUserCount() {
return userCount;
}
/**
* Total count of users that are part of the team.
*
*/
@JsonProperty("userCount")
public void setUserCount(Integer userCount) {
this.userCount = userCount;
}
public Team withUserCount(Integer userCount) {
this.userCount = userCount;
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("owns")
public List getOwns() {
return owns;
}
/**
* 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("owns")
public void setOwns(List owns) {
this.owns = owns;
}
public Team withOwns(List owns) {
this.owns = owns;
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 Team withOwners(List owners) {
this.owners = owners;
return this;
}
/**
* Can any user join this team during sign up? Value of true indicates yes, and false no.
*
*/
@JsonProperty("isJoinable")
public Boolean getIsJoinable() {
return isJoinable;
}
/**
* Can any user join this team during sign up? Value of true indicates yes, and false no.
*
*/
@JsonProperty("isJoinable")
public void setIsJoinable(Boolean isJoinable) {
this.isJoinable = isJoinable;
}
public Team withIsJoinable(Boolean isJoinable) {
this.isJoinable = isJoinable;
return this;
}
/**
* Description of the change.
*
*/
@JsonProperty("changeDescription")
public ChangeDescription getChangeDescription() {
return changeDescription;
}
/**
* Description of the change.
*
*/
@JsonProperty("changeDescription")
public void setChangeDescription(ChangeDescription changeDescription) {
this.changeDescription = changeDescription;
}
public Team withChangeDescription(ChangeDescription changeDescription) {
this.changeDescription = changeDescription;
return this;
}
/**
* When `true` indicates the entity has been soft deleted.
*
*/
@JsonProperty("deleted")
public Boolean getDeleted() {
return deleted;
}
/**
* When `true` indicates the entity has been soft deleted.
*
*/
@JsonProperty("deleted")
public void setDeleted(Boolean deleted) {
this.deleted = deleted;
}
public Team withDeleted(Boolean deleted) {
this.deleted = deleted;
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("defaultRoles")
public List getDefaultRoles() {
return defaultRoles;
}
/**
* 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("defaultRoles")
public void setDefaultRoles(List defaultRoles) {
this.defaultRoles = defaultRoles;
}
public Team withDefaultRoles(List defaultRoles) {
this.defaultRoles = defaultRoles;
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("inheritedRoles")
public List getInheritedRoles() {
return inheritedRoles;
}
/**
* 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("inheritedRoles")
public void setInheritedRoles(List inheritedRoles) {
this.inheritedRoles = inheritedRoles;
}
public Team withInheritedRoles(List inheritedRoles) {
this.inheritedRoles = inheritedRoles;
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("policies")
public List getPolicies() {
return policies;
}
/**
* 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("policies")
public void setPolicies(List policies) {
this.policies = policies;
}
public Team withPolicies(List policies) {
this.policies = policies;
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("domains")
public List getDomains() {
return domains;
}
/**
* 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("domains")
public void setDomains(List domains) {
this.domains = domains;
}
public Team withDomains(List domains) {
this.domains = domains;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(Team.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("id");
sb.append('=');
sb.append(((this.id == null)?"":this.id));
sb.append(',');
sb.append("teamType");
sb.append('=');
sb.append(((this.teamType == null)?"":this.teamType));
sb.append(',');
sb.append("name");
sb.append('=');
sb.append(((this.name == null)?"":this.name));
sb.append(',');
sb.append("email");
sb.append('=');
sb.append(((this.email == null)?"":this.email));
sb.append(',');
sb.append("fullyQualifiedName");
sb.append('=');
sb.append(((this.fullyQualifiedName == null)?"":this.fullyQualifiedName));
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("version");
sb.append('=');
sb.append(((this.version == null)?"":this.version));
sb.append(',');
sb.append("updatedAt");
sb.append('=');
sb.append(((this.updatedAt == null)?"":this.updatedAt));
sb.append(',');
sb.append("updatedBy");
sb.append('=');
sb.append(((this.updatedBy == null)?"":this.updatedBy));
sb.append(',');
sb.append("href");
sb.append('=');
sb.append(((this.href == null)?"":this.href));
sb.append(',');
sb.append("profile");
sb.append('=');
sb.append(((this.profile == null)?"":this.profile));
sb.append(',');
sb.append("parents");
sb.append('=');
sb.append(((this.parents == null)?"":this.parents));
sb.append(',');
sb.append("children");
sb.append('=');
sb.append(((this.children == null)?"":this.children));
sb.append(',');
sb.append("users");
sb.append('=');
sb.append(((this.users == null)?"":this.users));
sb.append(',');
sb.append("childrenCount");
sb.append('=');
sb.append(((this.childrenCount == null)?"":this.childrenCount));
sb.append(',');
sb.append("userCount");
sb.append('=');
sb.append(((this.userCount == null)?"":this.userCount));
sb.append(',');
sb.append("owns");
sb.append('=');
sb.append(((this.owns == null)?"":this.owns));
sb.append(',');
sb.append("owners");
sb.append('=');
sb.append(((this.owners == null)?"":this.owners));
sb.append(',');
sb.append("isJoinable");
sb.append('=');
sb.append(((this.isJoinable == null)?"":this.isJoinable));
sb.append(',');
sb.append("changeDescription");
sb.append('=');
sb.append(((this.changeDescription == null)?"":this.changeDescription));
sb.append(',');
sb.append("deleted");
sb.append('=');
sb.append(((this.deleted == null)?"":this.deleted));
sb.append(',');
sb.append("defaultRoles");
sb.append('=');
sb.append(((this.defaultRoles == null)?"":this.defaultRoles));
sb.append(',');
sb.append("inheritedRoles");
sb.append('=');
sb.append(((this.inheritedRoles == null)?"":this.inheritedRoles));
sb.append(',');
sb.append("policies");
sb.append('=');
sb.append(((this.policies == null)?"":this.policies));
sb.append(',');
sb.append("domains");
sb.append('=');
sb.append(((this.domains == null)?"":this.domains));
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.displayName == null)? 0 :this.displayName.hashCode()));
result = ((result* 31)+((this.policies == null)? 0 :this.policies.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.children == null)? 0 :this.children.hashCode()));
result = ((result* 31)+((this.owns == null)? 0 :this.owns.hashCode()));
result = ((result* 31)+((this.id == null)? 0 :this.id.hashCode()));
result = ((result* 31)+((this.href == null)? 0 :this.href.hashCode()));
result = ((result* 31)+((this.email == null)? 0 :this.email.hashCode()));
result = ((result* 31)+((this.updatedAt == null)? 0 :this.updatedAt.hashCode()));
result = ((result* 31)+((this.childrenCount == null)? 0 :this.childrenCount.hashCode()));
result = ((result* 31)+((this.updatedBy == null)? 0 :this.updatedBy.hashCode()));
result = ((result* 31)+((this.changeDescription == null)? 0 :this.changeDescription.hashCode()));
result = ((result* 31)+((this.profile == null)? 0 :this.profile.hashCode()));
result = ((result* 31)+((this.inheritedRoles == null)? 0 :this.inheritedRoles.hashCode()));
result = ((result* 31)+((this.domains == null)? 0 :this.domains.hashCode()));
result = ((result* 31)+((this.fullyQualifiedName == null)? 0 :this.fullyQualifiedName.hashCode()));
result = ((result* 31)+((this.version == null)? 0 :this.version.hashCode()));
result = ((result* 31)+((this.users == null)? 0 :this.users.hashCode()));
result = ((result* 31)+((this.deleted == null)? 0 :this.deleted.hashCode()));
result = ((result* 31)+((this.userCount == null)? 0 :this.userCount.hashCode()));
result = ((result* 31)+((this.name == null)? 0 :this.name.hashCode()));
result = ((result* 31)+((this.defaultRoles == null)? 0 :this.defaultRoles.hashCode()));
result = ((result* 31)+((this.teamType == null)? 0 :this.teamType.hashCode()));
result = ((result* 31)+((this.isJoinable == null)? 0 :this.isJoinable.hashCode()));
result = ((result* 31)+((this.parents == null)? 0 :this.parents.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Team) == false) {
return false;
}
Team rhs = ((Team) other);
return (((((((((((((((((((((((((((this.displayName == rhs.displayName)||((this.displayName!= null)&&this.displayName.equals(rhs.displayName)))&&((this.policies == rhs.policies)||((this.policies!= null)&&this.policies.equals(rhs.policies))))&&((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.children == rhs.children)||((this.children!= null)&&this.children.equals(rhs.children))))&&((this.owns == rhs.owns)||((this.owns!= null)&&this.owns.equals(rhs.owns))))&&((this.id == rhs.id)||((this.id!= null)&&this.id.equals(rhs.id))))&&((this.href == rhs.href)||((this.href!= null)&&this.href.equals(rhs.href))))&&((this.email == rhs.email)||((this.email!= null)&&this.email.equals(rhs.email))))&&((this.updatedAt == rhs.updatedAt)||((this.updatedAt!= null)&&this.updatedAt.equals(rhs.updatedAt))))&&((this.childrenCount == rhs.childrenCount)||((this.childrenCount!= null)&&this.childrenCount.equals(rhs.childrenCount))))&&((this.updatedBy == rhs.updatedBy)||((this.updatedBy!= null)&&this.updatedBy.equals(rhs.updatedBy))))&&((this.changeDescription == rhs.changeDescription)||((this.changeDescription!= null)&&this.changeDescription.equals(rhs.changeDescription))))&&((this.profile == rhs.profile)||((this.profile!= null)&&this.profile.equals(rhs.profile))))&&((this.inheritedRoles == rhs.inheritedRoles)||((this.inheritedRoles!= null)&&this.inheritedRoles.equals(rhs.inheritedRoles))))&&((this.domains == rhs.domains)||((this.domains!= null)&&this.domains.equals(rhs.domains))))&&((this.fullyQualifiedName == rhs.fullyQualifiedName)||((this.fullyQualifiedName!= null)&&this.fullyQualifiedName.equals(rhs.fullyQualifiedName))))&&((this.version == rhs.version)||((this.version!= null)&&this.version.equals(rhs.version))))&&((this.users == rhs.users)||((this.users!= null)&&this.users.equals(rhs.users))))&&((this.deleted == rhs.deleted)||((this.deleted!= null)&&this.deleted.equals(rhs.deleted))))&&((this.userCount == rhs.userCount)||((this.userCount!= null)&&this.userCount.equals(rhs.userCount))))&&((this.name == rhs.name)||((this.name!= null)&&this.name.equals(rhs.name))))&&((this.defaultRoles == rhs.defaultRoles)||((this.defaultRoles!= null)&&this.defaultRoles.equals(rhs.defaultRoles))))&&((this.teamType == rhs.teamType)||((this.teamType!= null)&&this.teamType.equals(rhs.teamType))))&&((this.isJoinable == rhs.isJoinable)||((this.isJoinable!= null)&&this.isJoinable.equals(rhs.isJoinable))))&&((this.parents == rhs.parents)||((this.parents!= null)&&this.parents.equals(rhs.parents))));
}
}