com.volcengine.volcobserve.model.UpdateContactsRequest Maven / Gradle / Ivy
/*
* volc_observe
* 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.volcobserve.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;
/**
* UpdateContactsRequest
*/
public class UpdateContactsRequest {
@SerializedName("Email")
private String email = null;
@SerializedName("Id")
private String id = null;
@SerializedName("Name")
private String name = null;
@SerializedName("Phone")
private String phone = null;
public UpdateContactsRequest email(String email) {
this.email = email;
return this;
}
/**
* Get email
* @return email
**/
@NotNull
@Schema(required = true, description = "")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public UpdateContactsRequest id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@NotNull
@Schema(required = true, description = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public UpdateContactsRequest name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@NotNull
@Schema(required = true, description = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public UpdateContactsRequest phone(String phone) {
this.phone = phone;
return this;
}
/**
* Get phone
* @return phone
**/
@Schema(description = "")
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UpdateContactsRequest updateContactsRequest = (UpdateContactsRequest) o;
return Objects.equals(this.email, updateContactsRequest.email) &&
Objects.equals(this.id, updateContactsRequest.id) &&
Objects.equals(this.name, updateContactsRequest.name) &&
Objects.equals(this.phone, updateContactsRequest.phone);
}
@Override
public int hashCode() {
return Objects.hash(email, id, name, phone);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateContactsRequest {\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).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 ");
}
}