com.seeq.model.FolderInputV1 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;
/**
* FolderInputV1
*/
public class FolderInputV1 {
@JsonProperty("branchFrom")
private String branchFrom = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("ownerId")
private String ownerId = null;
@JsonProperty("parentFolderId")
private String parentFolderId = null;
public FolderInputV1 branchFrom(String branchFrom) {
this.branchFrom = branchFrom;
return this;
}
/**
* Create a new folder by duplicating the contents of the folder with the specified ID. When null, no branching will occur; resulting folder will be empty. By default the new folder will have the same parent as the original folder.
* @return branchFrom
**/
@Schema(description = "Create a new folder by duplicating the contents of the folder with the specified ID. When null, no branching will occur; resulting folder will be empty. By default the new folder will have the same parent as the original folder.")
public String getBranchFrom() {
return branchFrom;
}
public void setBranchFrom(String branchFrom) {
this.branchFrom = branchFrom;
}
public FolderInputV1 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 FolderInputV1 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 FolderInputV1 ownerId(String ownerId) {
this.ownerId = ownerId;
return this;
}
/**
* The ID of the User that owns this folder. If omitted when creating a new Folder, the authenticated user is used by default. Only administrators may set this value.
* @return ownerId
**/
@Schema(description = "The ID of the User that owns this folder. If omitted when creating a new Folder, the authenticated user is used by default. Only administrators may set this value.")
public String getOwnerId() {
return ownerId;
}
public void setOwnerId(String ownerId) {
this.ownerId = ownerId;
}
public FolderInputV1 parentFolderId(String parentFolderId) {
this.parentFolderId = parentFolderId;
return this;
}
/**
* The ID of the parent folder for this folder. Special values of 'mine' or 'corporate' place the item in the authenticated user's home folder or the corporate folder, respectively. If null, the folder will be created in the user's home folder.
* @return parentFolderId
**/
@Schema(description = "The ID of the parent folder for this folder. Special values of 'mine' or 'corporate' place the item in the authenticated user's home folder or the corporate folder, respectively. If null, the folder will be created in the user's home folder.")
public String getParentFolderId() {
return parentFolderId;
}
public void setParentFolderId(String parentFolderId) {
this.parentFolderId = parentFolderId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FolderInputV1 folderInputV1 = (FolderInputV1) o;
return Objects.equals(this.branchFrom, folderInputV1.branchFrom) &&
Objects.equals(this.description, folderInputV1.description) &&
Objects.equals(this.name, folderInputV1.name) &&
Objects.equals(this.ownerId, folderInputV1.ownerId) &&
Objects.equals(this.parentFolderId, folderInputV1.parentFolderId);
}
@Override
public int hashCode() {
return Objects.hash(branchFrom, description, name, ownerId, parentFolderId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FolderInputV1 {\n");
sb.append(" branchFrom: ").append(toIndentedString(branchFrom)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" ownerId: ").append(toIndentedString(ownerId)).append("\n");
sb.append(" parentFolderId: ").append(toIndentedString(parentFolderId)).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 ");
}
}