All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.volcengine.rabbitmq.model.CreateInstanceRequest Maven / Gradle / Ivy

There is a newer version: 0.1.144
Show newest version
/*
 * rabbitmq
 * 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.rabbitmq.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.rabbitmq.model.ChargeInfoForCreateInstanceInput;
import com.volcengine.rabbitmq.model.TagForCreateInstanceInput;
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;
/**
 * CreateInstanceRequest
 */



public class CreateInstanceRequest {
  @SerializedName("ApplyPrivateDNSToPublic")
  private Boolean applyPrivateDNSToPublic = 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("InstanceDescription")
  private String instanceDescription = null;

  @SerializedName("InstanceName")
  private String instanceName = null;

  @SerializedName("ProjectName")
  private String projectName = null;

  @SerializedName("StorageSpace")
  private Integer storageSpace = null;

  @SerializedName("SubnetId")
  private String subnetId = null;

  @SerializedName("Tags")
  private List tags = null;

  @SerializedName("UserName")
  private String userName = null;

  @SerializedName("UserPassword")
  private String userPassword = null;

  @SerializedName("Version")
  private String version = null;

  @SerializedName("VpcId")
  private String vpcId = null;

  @SerializedName("ZoneId")
  private String zoneId = null;

  public CreateInstanceRequest applyPrivateDNSToPublic(Boolean applyPrivateDNSToPublic) {
    this.applyPrivateDNSToPublic = applyPrivateDNSToPublic;
    return this;
  }

   /**
   * Get applyPrivateDNSToPublic
   * @return applyPrivateDNSToPublic
  **/
  @Schema(description = "")
  public Boolean isApplyPrivateDNSToPublic() {
    return applyPrivateDNSToPublic;
  }

  public void setApplyPrivateDNSToPublic(Boolean applyPrivateDNSToPublic) {
    this.applyPrivateDNSToPublic = applyPrivateDNSToPublic;
  }

  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
  **/
  @NotNull
  @Schema(required = true, 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 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 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 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(List tags) {
    this.tags = tags;
    return this;
  }

  public CreateInstanceRequest addTagsItem(TagForCreateInstanceInput 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;
  }

  public CreateInstanceRequest userName(String userName) {
    this.userName = userName;
    return this;
  }

   /**
   * Get userName
   * @return userName
  **/
  @NotNull
  @Schema(required = true, description = "")
  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public CreateInstanceRequest userPassword(String userPassword) {
    this.userPassword = userPassword;
    return this;
  }

   /**
   * Get userPassword
   * @return userPassword
  **/
  @NotNull
  @Schema(required = true, description = "")
  public String getUserPassword() {
    return userPassword;
  }

  public void setUserPassword(String userPassword) {
    this.userPassword = userPassword;
  }

  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.applyPrivateDNSToPublic, createInstanceRequest.applyPrivateDNSToPublic) &&
        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.instanceDescription, createInstanceRequest.instanceDescription) &&
        Objects.equals(this.instanceName, createInstanceRequest.instanceName) &&
        Objects.equals(this.projectName, createInstanceRequest.projectName) &&
        Objects.equals(this.storageSpace, createInstanceRequest.storageSpace) &&
        Objects.equals(this.subnetId, createInstanceRequest.subnetId) &&
        Objects.equals(this.tags, createInstanceRequest.tags) &&
        Objects.equals(this.userName, createInstanceRequest.userName) &&
        Objects.equals(this.userPassword, createInstanceRequest.userPassword) &&
        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(applyPrivateDNSToPublic, chargeInfo, clientToken, computeSpec, eipId, instanceDescription, instanceName, projectName, storageSpace, subnetId, tags, userName, userPassword, version, vpcId, zoneId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CreateInstanceRequest {\n");
    
    sb.append("    applyPrivateDNSToPublic: ").append(toIndentedString(applyPrivateDNSToPublic)).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("    instanceDescription: ").append(toIndentedString(instanceDescription)).append("\n");
    sb.append("    instanceName: ").append(toIndentedString(instanceName)).append("\n");
    sb.append("    projectName: ").append(toIndentedString(projectName)).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("    userName: ").append(toIndentedString(userName)).append("\n");
    sb.append("    userPassword: ").append(toIndentedString(userPassword)).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