com.seeq.model.ColumnRuleAssetCreatorInputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 65.1.3-v202408082312
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.UUID;
/**
* Creates an asset based on its inputs. Column type must be UUID
*/
@Schema(description = "Creates an asset based on its inputs. Column type must be UUID")
public class ColumnRuleAssetCreatorInputV1 {
@JsonProperty("columnIndex")
private Integer columnIndex = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("identityId")
private UUID identityId = null;
@JsonProperty("isRoot")
private Boolean isRoot = null;
@JsonProperty("permissionString")
private String permissionString = null;
@JsonProperty("scopedTo")
private UUID scopedTo = null;
@JsonProperty("securityString")
private String securityString = null;
public ColumnRuleAssetCreatorInputV1 columnIndex(Integer columnIndex) {
this.columnIndex = columnIndex;
return this;
}
/**
* The index of the column that defines the name of the asset to create. The column index is 1-based. Names must be unique within a table. If an input column has the same name as an existing asset, the existing asset will be reused.
* @return columnIndex
**/
@Schema(required = true, description = "The index of the column that defines the name of the asset to create. The column index is 1-based. Names must be unique within a table. If an input column has the same name as an existing asset, the existing asset will be reused.")
public Integer getColumnIndex() {
return columnIndex;
}
public void setColumnIndex(Integer columnIndex) {
this.columnIndex = columnIndex;
}
public ColumnRuleAssetCreatorInputV1 description(String description) {
this.description = description;
return this;
}
/**
* Clarifying information or other plain language description for assets created by this rule. An input of just whitespace is equivalent to a null input.
* @return description
**/
@Schema(description = "Clarifying information or other plain language description for assets created by this rule. An input of just whitespace is equivalent to a null input.")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ColumnRuleAssetCreatorInputV1 identityId(UUID identityId) {
this.identityId = identityId;
return this;
}
/**
* The ID of the identity for which permissions will be set on items created by this rule. A null value means that the items created by this rule will have the same permissions as its associated datasource. This field cannot be set along with 'securityString'.
* @return identityId
**/
@Schema(description = "The ID of the identity for which permissions will be set on items created by this rule. A null value means that the items created by this rule will have the same permissions as its associated datasource. This field cannot be set along with 'securityString'.")
public UUID getIdentityId() {
return identityId;
}
public void setIdentityId(UUID identityId) {
this.identityId = identityId;
}
public ColumnRuleAssetCreatorInputV1 isRoot(Boolean isRoot) {
this.isRoot = isRoot;
return this;
}
/**
* Get isRoot
* @return isRoot
**/
@Schema(description = "")
public Boolean getIsRoot() {
return isRoot;
}
public void setIsRoot(Boolean isRoot) {
this.isRoot = isRoot;
}
public ColumnRuleAssetCreatorInputV1 permissionString(String permissionString) {
this.permissionString = permissionString;
return this;
}
/**
* The permissions for the identity included for items created by this rule. Must be in a valid string form with each permission separated by a comma, for example 'r,w,m'. Acceptable permissions are: 'r' - read, 'w' - write, 'm' - manage.This field cannot be set along with 'securityString'.
* @return permissionString
**/
@Schema(description = "The permissions for the identity included for items created by this rule. Must be in a valid string form with each permission separated by a comma, for example 'r,w,m'. Acceptable permissions are: 'r' - read, 'w' - write, 'm' - manage.This field cannot be set along with 'securityString'.")
public String getPermissionString() {
return permissionString;
}
public void setPermissionString(String permissionString) {
this.permissionString = permissionString;
}
public ColumnRuleAssetCreatorInputV1 scopedTo(UUID scopedTo) {
this.scopedTo = scopedTo;
return this;
}
/**
* The ID of the workbook to which assets created by this rule will be scoped. Null if the item should be globally scoped.
* @return scopedTo
**/
@Schema(description = "The ID of the workbook to which assets created by this rule will be scoped. Null if the item should be globally scoped.")
public UUID getScopedTo() {
return scopedTo;
}
public void setScopedTo(UUID scopedTo) {
this.scopedTo = scopedTo;
}
public ColumnRuleAssetCreatorInputV1 securityString(String securityString) {
this.securityString = securityString;
return this;
}
/**
* Security string containing all identities and their permissions for the item. Cannot be set if permissionString and identityId are set.
* @return securityString
**/
@Schema(description = "Security string containing all identities and their permissions for the item. Cannot be set if permissionString and identityId are set.")
public String getSecurityString() {
return securityString;
}
public void setSecurityString(String securityString) {
this.securityString = securityString;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ColumnRuleAssetCreatorInputV1 columnRuleAssetCreatorInputV1 = (ColumnRuleAssetCreatorInputV1) o;
return Objects.equals(this.columnIndex, columnRuleAssetCreatorInputV1.columnIndex) &&
Objects.equals(this.description, columnRuleAssetCreatorInputV1.description) &&
Objects.equals(this.identityId, columnRuleAssetCreatorInputV1.identityId) &&
Objects.equals(this.isRoot, columnRuleAssetCreatorInputV1.isRoot) &&
Objects.equals(this.permissionString, columnRuleAssetCreatorInputV1.permissionString) &&
Objects.equals(this.scopedTo, columnRuleAssetCreatorInputV1.scopedTo) &&
Objects.equals(this.securityString, columnRuleAssetCreatorInputV1.securityString);
}
@Override
public int hashCode() {
return Objects.hash(columnIndex, description, identityId, isRoot, permissionString, scopedTo, securityString);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ColumnRuleAssetCreatorInputV1 {\n");
sb.append(" columnIndex: ").append(toIndentedString(columnIndex)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" identityId: ").append(toIndentedString(identityId)).append("\n");
sb.append(" isRoot: ").append(toIndentedString(isRoot)).append("\n");
sb.append(" permissionString: ").append(toIndentedString(permissionString)).append("\n");
sb.append(" scopedTo: ").append(toIndentedString(scopedTo)).append("\n");
sb.append(" securityString: ").append(toIndentedString(securityString)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}