com.seeq.model.DisplayTemplateInputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 64.3.0-v202405012032
*
*
* 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;
/**
* DisplayTemplateInputV1
*/
public class DisplayTemplateInputV1 {
@JsonProperty("datasourceClass")
private String datasourceClass = null;
@JsonProperty("datasourceId")
private String datasourceId = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("scopedTo")
private UUID scopedTo = null;
@JsonProperty("sourceWorkstepId")
private UUID sourceWorkstepId = null;
@JsonProperty("swapSourceAssetId")
private UUID swapSourceAssetId = null;
public DisplayTemplateInputV1 datasourceClass(String datasourceClass) {
this.datasourceClass = datasourceClass;
return this;
}
/**
* Along with the Datasource ID, the Datasource Class uniquely identifies a datasource.
* @return datasourceClass
**/
@Schema(description = "Along with the Datasource ID, the Datasource Class uniquely identifies a datasource.")
public String getDatasourceClass() {
return datasourceClass;
}
public void setDatasourceClass(String datasourceClass) {
this.datasourceClass = datasourceClass;
}
public DisplayTemplateInputV1 datasourceId(String datasourceId) {
this.datasourceId = datasourceId;
return this;
}
/**
* Along with the Datasource Class, the Datasource ID uniquely identifies a datasource.
* @return datasourceId
**/
@Schema(description = "Along with the Datasource Class, the Datasource ID uniquely identifies a datasource.")
public String getDatasourceId() {
return datasourceId;
}
public void setDatasourceId(String datasourceId) {
this.datasourceId = datasourceId;
}
public DisplayTemplateInputV1 description(String description) {
this.description = description;
return this;
}
/**
* Clarifying information or other plain language description of this item. An input of just whitespaces is equivalent to a null input.
* @return description
**/
@Schema(description = "Clarifying information or other plain language description of this item. An input of just whitespaces is equivalent to a null input.")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public DisplayTemplateInputV1 name(String name) {
this.name = name;
return this;
}
/**
* Human readable name. Required during creation. An input of just whitespaces is equivalent to a null input.
* @return name
**/
@Schema(required = true, description = "Human readable name. Required during creation. An input of just whitespaces is equivalent to a null input.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public DisplayTemplateInputV1 scopedTo(UUID scopedTo) {
this.scopedTo = scopedTo;
return this;
}
/**
* The ID of the workbook to which this item will be scoped.
* @return scopedTo
**/
@Schema(required = true, description = "The ID of the workbook to which this item will be scoped.")
public UUID getScopedTo() {
return scopedTo;
}
public void setScopedTo(UUID scopedTo) {
this.scopedTo = scopedTo;
}
public DisplayTemplateInputV1 sourceWorkstepId(UUID sourceWorkstepId) {
this.sourceWorkstepId = sourceWorkstepId;
return this;
}
/**
* The ID of the source workstep for the display template
* @return sourceWorkstepId
**/
@Schema(required = true, description = "The ID of the source workstep for the display template")
public UUID getSourceWorkstepId() {
return sourceWorkstepId;
}
public void setSourceWorkstepId(UUID sourceWorkstepId) {
this.sourceWorkstepId = sourceWorkstepId;
}
public DisplayTemplateInputV1 swapSourceAssetId(UUID swapSourceAssetId) {
this.swapSourceAssetId = swapSourceAssetId;
return this;
}
/**
* The asset to swap out when loading displays based on this template
* @return swapSourceAssetId
**/
@Schema(description = "The asset to swap out when loading displays based on this template")
public UUID getSwapSourceAssetId() {
return swapSourceAssetId;
}
public void setSwapSourceAssetId(UUID swapSourceAssetId) {
this.swapSourceAssetId = swapSourceAssetId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DisplayTemplateInputV1 displayTemplateInputV1 = (DisplayTemplateInputV1) o;
return Objects.equals(this.datasourceClass, displayTemplateInputV1.datasourceClass) &&
Objects.equals(this.datasourceId, displayTemplateInputV1.datasourceId) &&
Objects.equals(this.description, displayTemplateInputV1.description) &&
Objects.equals(this.name, displayTemplateInputV1.name) &&
Objects.equals(this.scopedTo, displayTemplateInputV1.scopedTo) &&
Objects.equals(this.sourceWorkstepId, displayTemplateInputV1.sourceWorkstepId) &&
Objects.equals(this.swapSourceAssetId, displayTemplateInputV1.swapSourceAssetId);
}
@Override
public int hashCode() {
return Objects.hash(datasourceClass, datasourceId, description, name, scopedTo, sourceWorkstepId, swapSourceAssetId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DisplayTemplateInputV1 {\n");
sb.append(" datasourceClass: ").append(toIndentedString(datasourceClass)).append("\n");
sb.append(" datasourceId: ").append(toIndentedString(datasourceId)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" scopedTo: ").append(toIndentedString(scopedTo)).append("\n");
sb.append(" sourceWorkstepId: ").append(toIndentedString(sourceWorkstepId)).append("\n");
sb.append(" swapSourceAssetId: ").append(toIndentedString(swapSourceAssetId)).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 ");
}
}