com.volcengine.rocketmq.model.CreateInstanceRequest Maven / Gradle / Ivy
/*
* rocketmq
* 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.rocketmq.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.rocketmq.model.ChargeInfoForCreateInstanceInput;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
* CreateInstanceRequest
*/
public class CreateInstanceRequest {
@SerializedName("AllowListIds")
private List allowListIds = null;
@SerializedName("ChargeInfo")
private ChargeInfoForCreateInstanceInput chargeInfo = null;
@SerializedName("ClientToken")
private String clientToken = null;
@SerializedName("ComputeSpec")
private String computeSpec = null;
@SerializedName("EipId")
private String eipId = null;
@SerializedName("EnableSSL")
private Boolean enableSSL = null;
@SerializedName("FileReservedTime")
private Integer fileReservedTime = null;
@SerializedName("IPVersionType")
private String ipVersionType = null;
@SerializedName("InstanceDescription")
private String instanceDescription = null;
@SerializedName("InstanceName")
private String instanceName = null;
@SerializedName("NetworkTypes")
private String networkTypes = null;
@SerializedName("ProjectName")
private String projectName = null;
@SerializedName("SSLMode")
private String ssLMode = null;
@SerializedName("StorageSpace")
private Integer storageSpace = null;
@SerializedName("SubnetId")
private String subnetId = null;
@SerializedName("Tags")
private Map tags = null;
@SerializedName("Version")
private String version = null;
@SerializedName("VpcId")
private String vpcId = null;
@SerializedName("ZoneId")
private String zoneId = null;
public CreateInstanceRequest allowListIds(List allowListIds) {
this.allowListIds = allowListIds;
return this;
}
public CreateInstanceRequest addAllowListIdsItem(String allowListIdsItem) {
if (this.allowListIds == null) {
this.allowListIds = new ArrayList();
}
this.allowListIds.add(allowListIdsItem);
return this;
}
/**
* Get allowListIds
* @return allowListIds
**/
@Schema(description = "")
public List getAllowListIds() {
return allowListIds;
}
public void setAllowListIds(List allowListIds) {
this.allowListIds = allowListIds;
}
public CreateInstanceRequest chargeInfo(ChargeInfoForCreateInstanceInput chargeInfo) {
this.chargeInfo = chargeInfo;
return this;
}
/**
* Get chargeInfo
* @return chargeInfo
**/
@Valid
@Schema(description = "")
public ChargeInfoForCreateInstanceInput getChargeInfo() {
return chargeInfo;
}
public void setChargeInfo(ChargeInfoForCreateInstanceInput chargeInfo) {
this.chargeInfo = chargeInfo;
}
public CreateInstanceRequest clientToken(String clientToken) {
this.clientToken = clientToken;
return this;
}
/**
* Get clientToken
* @return clientToken
**/
@Schema(description = "")
public String getClientToken() {
return clientToken;
}
public void setClientToken(String clientToken) {
this.clientToken = clientToken;
}
public CreateInstanceRequest computeSpec(String computeSpec) {
this.computeSpec = computeSpec;
return this;
}
/**
* Get computeSpec
* @return computeSpec
**/
@NotNull
@Schema(required = true, description = "")
public String getComputeSpec() {
return computeSpec;
}
public void setComputeSpec(String computeSpec) {
this.computeSpec = computeSpec;
}
public CreateInstanceRequest eipId(String eipId) {
this.eipId = eipId;
return this;
}
/**
* Get eipId
* @return eipId
**/
@Schema(description = "")
public String getEipId() {
return eipId;
}
public void setEipId(String eipId) {
this.eipId = eipId;
}
public CreateInstanceRequest enableSSL(Boolean enableSSL) {
this.enableSSL = enableSSL;
return this;
}
/**
* Get enableSSL
* @return enableSSL
**/
@Schema(description = "")
public Boolean isEnableSSL() {
return enableSSL;
}
public void setEnableSSL(Boolean enableSSL) {
this.enableSSL = enableSSL;
}
public CreateInstanceRequest fileReservedTime(Integer fileReservedTime) {
this.fileReservedTime = fileReservedTime;
return this;
}
/**
* Get fileReservedTime
* @return fileReservedTime
**/
@NotNull
@Schema(required = true, description = "")
public Integer getFileReservedTime() {
return fileReservedTime;
}
public void setFileReservedTime(Integer fileReservedTime) {
this.fileReservedTime = fileReservedTime;
}
public CreateInstanceRequest ipVersionType(String ipVersionType) {
this.ipVersionType = ipVersionType;
return this;
}
/**
* Get ipVersionType
* @return ipVersionType
**/
@Schema(description = "")
public String getIpVersionType() {
return ipVersionType;
}
public void setIpVersionType(String ipVersionType) {
this.ipVersionType = ipVersionType;
}
public CreateInstanceRequest instanceDescription(String instanceDescription) {
this.instanceDescription = instanceDescription;
return this;
}
/**
* Get instanceDescription
* @return instanceDescription
**/
@Schema(description = "")
public String getInstanceDescription() {
return instanceDescription;
}
public void setInstanceDescription(String instanceDescription) {
this.instanceDescription = instanceDescription;
}
public CreateInstanceRequest instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* Get instanceName
* @return instanceName
**/
@Schema(description = "")
public String getInstanceName() {
return instanceName;
}
public void setInstanceName(String instanceName) {
this.instanceName = instanceName;
}
public CreateInstanceRequest networkTypes(String networkTypes) {
this.networkTypes = networkTypes;
return this;
}
/**
* Get networkTypes
* @return networkTypes
**/
@NotNull
@Schema(required = true, description = "")
public String getNetworkTypes() {
return networkTypes;
}
public void setNetworkTypes(String networkTypes) {
this.networkTypes = networkTypes;
}
public CreateInstanceRequest 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 CreateInstanceRequest ssLMode(String ssLMode) {
this.ssLMode = ssLMode;
return this;
}
/**
* Get ssLMode
* @return ssLMode
**/
@Schema(description = "")
public String getSsLMode() {
return ssLMode;
}
public void setSsLMode(String ssLMode) {
this.ssLMode = ssLMode;
}
public CreateInstanceRequest storageSpace(Integer storageSpace) {
this.storageSpace = storageSpace;
return this;
}
/**
* Get storageSpace
* @return storageSpace
**/
@NotNull
@Schema(required = true, description = "")
public Integer getStorageSpace() {
return storageSpace;
}
public void setStorageSpace(Integer storageSpace) {
this.storageSpace = storageSpace;
}
public CreateInstanceRequest subnetId(String subnetId) {
this.subnetId = subnetId;
return this;
}
/**
* Get subnetId
* @return subnetId
**/
@NotNull
@Schema(required = true, description = "")
public String getSubnetId() {
return subnetId;
}
public void setSubnetId(String subnetId) {
this.subnetId = subnetId;
}
public CreateInstanceRequest tags(Map tags) {
this.tags = tags;
return this;
}
public CreateInstanceRequest putTagsItem(String key, String tagsItem) {
if (this.tags == null) {
this.tags = new HashMap();
}
this.tags.put(key, tagsItem);
return this;
}
/**
* Get tags
* @return tags
**/
@Schema(description = "")
public Map getTags() {
return tags;
}
public void setTags(Map tags) {
this.tags = tags;
}
public CreateInstanceRequest version(String version) {
this.version = version;
return this;
}
/**
* Get version
* @return version
**/
@NotNull
@Schema(required = true, description = "")
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public CreateInstanceRequest vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* Get vpcId
* @return vpcId
**/
@NotNull
@Schema(required = true, description = "")
public String getVpcId() {
return vpcId;
}
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
}
public CreateInstanceRequest zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
/**
* Get zoneId
* @return zoneId
**/
@NotNull
@Schema(required = true, description = "")
public String getZoneId() {
return zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateInstanceRequest createInstanceRequest = (CreateInstanceRequest) o;
return Objects.equals(this.allowListIds, createInstanceRequest.allowListIds) &&
Objects.equals(this.chargeInfo, createInstanceRequest.chargeInfo) &&
Objects.equals(this.clientToken, createInstanceRequest.clientToken) &&
Objects.equals(this.computeSpec, createInstanceRequest.computeSpec) &&
Objects.equals(this.eipId, createInstanceRequest.eipId) &&
Objects.equals(this.enableSSL, createInstanceRequest.enableSSL) &&
Objects.equals(this.fileReservedTime, createInstanceRequest.fileReservedTime) &&
Objects.equals(this.ipVersionType, createInstanceRequest.ipVersionType) &&
Objects.equals(this.instanceDescription, createInstanceRequest.instanceDescription) &&
Objects.equals(this.instanceName, createInstanceRequest.instanceName) &&
Objects.equals(this.networkTypes, createInstanceRequest.networkTypes) &&
Objects.equals(this.projectName, createInstanceRequest.projectName) &&
Objects.equals(this.ssLMode, createInstanceRequest.ssLMode) &&
Objects.equals(this.storageSpace, createInstanceRequest.storageSpace) &&
Objects.equals(this.subnetId, createInstanceRequest.subnetId) &&
Objects.equals(this.tags, createInstanceRequest.tags) &&
Objects.equals(this.version, createInstanceRequest.version) &&
Objects.equals(this.vpcId, createInstanceRequest.vpcId) &&
Objects.equals(this.zoneId, createInstanceRequest.zoneId);
}
@Override
public int hashCode() {
return Objects.hash(allowListIds, chargeInfo, clientToken, computeSpec, eipId, enableSSL, fileReservedTime, ipVersionType, instanceDescription, instanceName, networkTypes, projectName, ssLMode, storageSpace, subnetId, tags, version, vpcId, zoneId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateInstanceRequest {\n");
sb.append(" allowListIds: ").append(toIndentedString(allowListIds)).append("\n");
sb.append(" chargeInfo: ").append(toIndentedString(chargeInfo)).append("\n");
sb.append(" clientToken: ").append(toIndentedString(clientToken)).append("\n");
sb.append(" computeSpec: ").append(toIndentedString(computeSpec)).append("\n");
sb.append(" eipId: ").append(toIndentedString(eipId)).append("\n");
sb.append(" enableSSL: ").append(toIndentedString(enableSSL)).append("\n");
sb.append(" fileReservedTime: ").append(toIndentedString(fileReservedTime)).append("\n");
sb.append(" ipVersionType: ").append(toIndentedString(ipVersionType)).append("\n");
sb.append(" instanceDescription: ").append(toIndentedString(instanceDescription)).append("\n");
sb.append(" instanceName: ").append(toIndentedString(instanceName)).append("\n");
sb.append(" networkTypes: ").append(toIndentedString(networkTypes)).append("\n");
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");
sb.append(" ssLMode: ").append(toIndentedString(ssLMode)).append("\n");
sb.append(" storageSpace: ").append(toIndentedString(storageSpace)).append("\n");
sb.append(" subnetId: ").append(toIndentedString(subnetId)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n");
sb.append(" zoneId: ").append(toIndentedString(zoneId)).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