com.volcengine.escloud.model.CreateInstanceRequest 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 com.volcengine.escloud.model.InstanceConfigurationForCreateInstanceInput;
import com.volcengine.escloud.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("ClientToken")
private String clientToken = null;
@SerializedName("InstanceConfiguration")
private InstanceConfigurationForCreateInstanceInput instanceConfiguration = null;
@SerializedName("Tags")
private List tags = null;
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 instanceConfiguration(InstanceConfigurationForCreateInstanceInput instanceConfiguration) {
this.instanceConfiguration = instanceConfiguration;
return this;
}
/**
* Get instanceConfiguration
* @return instanceConfiguration
**/
@Valid
@Schema(description = "")
public InstanceConfigurationForCreateInstanceInput getInstanceConfiguration() {
return instanceConfiguration;
}
public void setInstanceConfiguration(InstanceConfigurationForCreateInstanceInput instanceConfiguration) {
this.instanceConfiguration = instanceConfiguration;
}
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;
}
@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.clientToken, createInstanceRequest.clientToken) &&
Objects.equals(this.instanceConfiguration, createInstanceRequest.instanceConfiguration) &&
Objects.equals(this.tags, createInstanceRequest.tags);
}
@Override
public int hashCode() {
return Objects.hash(clientToken, instanceConfiguration, tags);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateInstanceRequest {\n");
sb.append(" clientToken: ").append(toIndentedString(clientToken)).append("\n");
sb.append(" instanceConfiguration: ").append(toIndentedString(instanceConfiguration)).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 - 2025 Weber Informatics LLC | Privacy Policy