com.volcengine.escloud.model.ModifyIpWhitelistRequest 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;
/**
* ModifyIpWhitelistRequest
*/
public class ModifyIpWhitelistRequest {
@SerializedName("Component")
private String component = null;
@SerializedName("InstanceId")
private String instanceId = null;
@SerializedName("IpList")
private String ipList = null;
@SerializedName("Type")
private String type = null;
public ModifyIpWhitelistRequest component(String component) {
this.component = component;
return this;
}
/**
* Get component
* @return component
**/
@NotNull
@Schema(required = true, description = "")
public String getComponent() {
return component;
}
public void setComponent(String component) {
this.component = component;
}
public ModifyIpWhitelistRequest instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* Get instanceId
* @return instanceId
**/
@NotNull
@Schema(required = true, description = "")
public String getInstanceId() {
return instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
public ModifyIpWhitelistRequest ipList(String ipList) {
this.ipList = ipList;
return this;
}
/**
* Get ipList
* @return ipList
**/
@NotNull
@Schema(required = true, description = "")
public String getIpList() {
return ipList;
}
public void setIpList(String ipList) {
this.ipList = ipList;
}
public ModifyIpWhitelistRequest type(String type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@NotNull
@Schema(required = true, 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;
}
ModifyIpWhitelistRequest modifyIpWhitelistRequest = (ModifyIpWhitelistRequest) o;
return Objects.equals(this.component, modifyIpWhitelistRequest.component) &&
Objects.equals(this.instanceId, modifyIpWhitelistRequest.instanceId) &&
Objects.equals(this.ipList, modifyIpWhitelistRequest.ipList) &&
Objects.equals(this.type, modifyIpWhitelistRequest.type);
}
@Override
public int hashCode() {
return Objects.hash(component, instanceId, ipList, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ModifyIpWhitelistRequest {\n");
sb.append(" component: ").append(toIndentedString(component)).append("\n");
sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n");
sb.append(" ipList: ").append(toIndentedString(ipList)).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