com.volcengine.filenas.model.UpdateFileSystemRequest Maven / Gradle / Ivy
/*
* filenas
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: common-version
*
*
* 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.volcengine.filenas.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import com.volcengine.filenas.model.TagForUpdateFileSystemInput;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
* UpdateFileSystemRequest
*/
public class UpdateFileSystemRequest {
@SerializedName("AutoExpand")
private Boolean autoExpand = null;
@SerializedName("AutoExpandLimit")
private Integer autoExpandLimit = null;
@SerializedName("AutoExpandStep")
private Integer autoExpandStep = null;
@SerializedName("AutoExpandThreshold")
private Integer autoExpandThreshold = null;
@SerializedName("Description")
private String description = null;
@SerializedName("FileSystemId")
private String fileSystemId = null;
@SerializedName("FileSystemName")
private String fileSystemName = null;
@SerializedName("ProjectName")
private String projectName = null;
@SerializedName("Tags")
private List tags = null;
public UpdateFileSystemRequest autoExpand(Boolean autoExpand) {
this.autoExpand = autoExpand;
return this;
}
/**
* Get autoExpand
* @return autoExpand
**/
@Schema(description = "")
public Boolean isAutoExpand() {
return autoExpand;
}
public void setAutoExpand(Boolean autoExpand) {
this.autoExpand = autoExpand;
}
public UpdateFileSystemRequest autoExpandLimit(Integer autoExpandLimit) {
this.autoExpandLimit = autoExpandLimit;
return this;
}
/**
* Get autoExpandLimit
* @return autoExpandLimit
**/
@Schema(description = "")
public Integer getAutoExpandLimit() {
return autoExpandLimit;
}
public void setAutoExpandLimit(Integer autoExpandLimit) {
this.autoExpandLimit = autoExpandLimit;
}
public UpdateFileSystemRequest autoExpandStep(Integer autoExpandStep) {
this.autoExpandStep = autoExpandStep;
return this;
}
/**
* Get autoExpandStep
* @return autoExpandStep
**/
@Schema(description = "")
public Integer getAutoExpandStep() {
return autoExpandStep;
}
public void setAutoExpandStep(Integer autoExpandStep) {
this.autoExpandStep = autoExpandStep;
}
public UpdateFileSystemRequest autoExpandThreshold(Integer autoExpandThreshold) {
this.autoExpandThreshold = autoExpandThreshold;
return this;
}
/**
* Get autoExpandThreshold
* @return autoExpandThreshold
**/
@Schema(description = "")
public Integer getAutoExpandThreshold() {
return autoExpandThreshold;
}
public void setAutoExpandThreshold(Integer autoExpandThreshold) {
this.autoExpandThreshold = autoExpandThreshold;
}
public UpdateFileSystemRequest description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@Schema(description = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public UpdateFileSystemRequest fileSystemId(String fileSystemId) {
this.fileSystemId = fileSystemId;
return this;
}
/**
* Get fileSystemId
* @return fileSystemId
**/
@NotNull
@Schema(required = true, description = "")
public String getFileSystemId() {
return fileSystemId;
}
public void setFileSystemId(String fileSystemId) {
this.fileSystemId = fileSystemId;
}
public UpdateFileSystemRequest fileSystemName(String fileSystemName) {
this.fileSystemName = fileSystemName;
return this;
}
/**
* Get fileSystemName
* @return fileSystemName
**/
@Schema(description = "")
public String getFileSystemName() {
return fileSystemName;
}
public void setFileSystemName(String fileSystemName) {
this.fileSystemName = fileSystemName;
}
public UpdateFileSystemRequest projectName(String projectName) {
this.projectName = projectName;
return this;
}
/**
* Get projectName
* @return projectName
**/
@Schema(description = "")
public String getProjectName() {
return projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
}
public UpdateFileSystemRequest tags(List tags) {
this.tags = tags;
return this;
}
public UpdateFileSystemRequest addTagsItem(TagForUpdateFileSystemInput tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList();
}
this.tags.add(tagsItem);
return this;
}
/**
* Get tags
* @return tags
**/
@Valid
@Schema(description = "")
public List getTags() {
return tags;
}
public void setTags(List tags) {
this.tags = tags;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UpdateFileSystemRequest updateFileSystemRequest = (UpdateFileSystemRequest) o;
return Objects.equals(this.autoExpand, updateFileSystemRequest.autoExpand) &&
Objects.equals(this.autoExpandLimit, updateFileSystemRequest.autoExpandLimit) &&
Objects.equals(this.autoExpandStep, updateFileSystemRequest.autoExpandStep) &&
Objects.equals(this.autoExpandThreshold, updateFileSystemRequest.autoExpandThreshold) &&
Objects.equals(this.description, updateFileSystemRequest.description) &&
Objects.equals(this.fileSystemId, updateFileSystemRequest.fileSystemId) &&
Objects.equals(this.fileSystemName, updateFileSystemRequest.fileSystemName) &&
Objects.equals(this.projectName, updateFileSystemRequest.projectName) &&
Objects.equals(this.tags, updateFileSystemRequest.tags);
}
@Override
public int hashCode() {
return Objects.hash(autoExpand, autoExpandLimit, autoExpandStep, autoExpandThreshold, description, fileSystemId, fileSystemName, projectName, tags);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateFileSystemRequest {\n");
sb.append(" autoExpand: ").append(toIndentedString(autoExpand)).append("\n");
sb.append(" autoExpandLimit: ").append(toIndentedString(autoExpandLimit)).append("\n");
sb.append(" autoExpandStep: ").append(toIndentedString(autoExpandStep)).append("\n");
sb.append(" autoExpandThreshold: ").append(toIndentedString(autoExpandThreshold)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" fileSystemId: ").append(toIndentedString(fileSystemId)).append("\n");
sb.append(" fileSystemName: ").append(toIndentedString(fileSystemName)).append("\n");
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).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 ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy