com.volcengine.escloud.model.NetworkSpecForCreateInstanceInput Maven / Gradle / Ivy
/*
* 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;
/**
* NetworkSpecForCreateInstanceInput
*/
public class NetworkSpecForCreateInstanceInput {
@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 NetworkSpecForCreateInstanceInput 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 NetworkSpecForCreateInstanceInput 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 NetworkSpecForCreateInstanceInput 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 NetworkSpecForCreateInstanceInput 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;
}
NetworkSpecForCreateInstanceInput networkSpecForCreateInstanceInput = (NetworkSpecForCreateInstanceInput) o;
return Objects.equals(this.bandwidth, networkSpecForCreateInstanceInput.bandwidth) &&
Objects.equals(this.isOpen, networkSpecForCreateInstanceInput.isOpen) &&
Objects.equals(this.specName, networkSpecForCreateInstanceInput.specName) &&
Objects.equals(this.type, networkSpecForCreateInstanceInput.type);
}
@Override
public int hashCode() {
return Objects.hash(bandwidth, isOpen, specName, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NetworkSpecForCreateInstanceInput {\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