com.volcengine.waf.model.BackendForUpdateDomainInput Maven / Gradle / Ivy
The newest version!
/*
* waf
* 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.waf.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;
/**
* BackendForUpdateDomainInput
*/
public class BackendForUpdateDomainInput {
@SerializedName("IP")
private String IP = null;
@SerializedName("Port")
private Integer port = null;
@SerializedName("Protocol")
private String protocol = null;
@SerializedName("Weight")
private Integer weight = null;
public BackendForUpdateDomainInput IP(String IP) {
this.IP = IP;
return this;
}
/**
* Get IP
* @return IP
**/
@Schema(description = "")
public String getIP() {
return IP;
}
public void setIP(String IP) {
this.IP = IP;
}
public BackendForUpdateDomainInput port(Integer port) {
this.port = port;
return this;
}
/**
* Get port
* @return port
**/
@Schema(description = "")
public Integer getPort() {
return port;
}
public void setPort(Integer port) {
this.port = port;
}
public BackendForUpdateDomainInput protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* Get protocol
* @return protocol
**/
@Schema(description = "")
public String getProtocol() {
return protocol;
}
public void setProtocol(String protocol) {
this.protocol = protocol;
}
public BackendForUpdateDomainInput weight(Integer weight) {
this.weight = weight;
return this;
}
/**
* Get weight
* @return weight
**/
@Schema(description = "")
public Integer getWeight() {
return weight;
}
public void setWeight(Integer weight) {
this.weight = weight;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BackendForUpdateDomainInput backendForUpdateDomainInput = (BackendForUpdateDomainInput) o;
return Objects.equals(this.IP, backendForUpdateDomainInput.IP) &&
Objects.equals(this.port, backendForUpdateDomainInput.port) &&
Objects.equals(this.protocol, backendForUpdateDomainInput.protocol) &&
Objects.equals(this.weight, backendForUpdateDomainInput.weight);
}
@Override
public int hashCode() {
return Objects.hash(IP, port, protocol, weight);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BackendForUpdateDomainInput {\n");
sb.append(" IP: ").append(toIndentedString(IP)).append("\n");
sb.append(" port: ").append(toIndentedString(port)).append("\n");
sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n");
sb.append(" weight: ").append(toIndentedString(weight)).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 ");
}
}