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

com.volcengine.escloud.model.NetworkSpecForCreateInstanceInOneStepInput Maven / Gradle / Ivy

There is a newer version: 0.1.146
Show newest version
/*
 * escloud
 * 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.escloud.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 io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
 * NetworkSpecForCreateInstanceInOneStepInput
 */



public class NetworkSpecForCreateInstanceInOneStepInput {
  @SerializedName("Bandwidth")
  private Integer bandwidth = null;

  @SerializedName("IsOpen")
  private Boolean isOpen = null;

  @SerializedName("SpecName")
  private String specName = null;

  @SerializedName("Type")
  private String type = null;

  public NetworkSpecForCreateInstanceInOneStepInput bandwidth(Integer bandwidth) {
    this.bandwidth = bandwidth;
    return this;
  }

   /**
   * Get bandwidth
   * @return bandwidth
  **/
  @Schema(description = "")
  public Integer getBandwidth() {
    return bandwidth;
  }

  public void setBandwidth(Integer bandwidth) {
    this.bandwidth = bandwidth;
  }

  public NetworkSpecForCreateInstanceInOneStepInput isOpen(Boolean isOpen) {
    this.isOpen = isOpen;
    return this;
  }

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

  public void setIsOpen(Boolean isOpen) {
    this.isOpen = isOpen;
  }

  public NetworkSpecForCreateInstanceInOneStepInput specName(String specName) {
    this.specName = specName;
    return this;
  }

   /**
   * Get specName
   * @return specName
  **/
  @Schema(description = "")
  public String getSpecName() {
    return specName;
  }

  public void setSpecName(String specName) {
    this.specName = specName;
  }

  public NetworkSpecForCreateInstanceInOneStepInput type(String type) {
    this.type = type;
    return this;
  }

   /**
   * Get type
   * @return type
  **/
  @Schema(description = "")
  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    NetworkSpecForCreateInstanceInOneStepInput networkSpecForCreateInstanceInOneStepInput = (NetworkSpecForCreateInstanceInOneStepInput) o;
    return Objects.equals(this.bandwidth, networkSpecForCreateInstanceInOneStepInput.bandwidth) &&
        Objects.equals(this.isOpen, networkSpecForCreateInstanceInOneStepInput.isOpen) &&
        Objects.equals(this.specName, networkSpecForCreateInstanceInOneStepInput.specName) &&
        Objects.equals(this.type, networkSpecForCreateInstanceInOneStepInput.type);
  }

  @Override
  public int hashCode() {
    return Objects.hash(bandwidth, isOpen, specName, type);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class NetworkSpecForCreateInstanceInOneStepInput {\n");
    
    sb.append("    bandwidth: ").append(toIndentedString(bandwidth)).append("\n");
    sb.append("    isOpen: ").append(toIndentedString(isOpen)).append("\n");
    sb.append("    specName: ").append(toIndentedString(specName)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).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 - 2025 Weber Informatics LLC | Privacy Policy