com.volcengine.fwcenter.model.ModifyAddressBookRequest Maven / Gradle / Ivy
/*
* fwcenter
* 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.fwcenter.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 java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
* ModifyAddressBookRequest
*/
public class ModifyAddressBookRequest {
@SerializedName("AddressList")
private List addressList = null;
@SerializedName("Description")
private String description = null;
@SerializedName("GroupName")
private String groupName = null;
@SerializedName("GroupUuid")
private String groupUuid = null;
public ModifyAddressBookRequest addressList(List addressList) {
this.addressList = addressList;
return this;
}
public ModifyAddressBookRequest addAddressListItem(String addressListItem) {
if (this.addressList == null) {
this.addressList = new ArrayList();
}
this.addressList.add(addressListItem);
return this;
}
/**
* Get addressList
* @return addressList
**/
@Schema(description = "")
public List getAddressList() {
return addressList;
}
public void setAddressList(List addressList) {
this.addressList = addressList;
}
public ModifyAddressBookRequest description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@Schema(description = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ModifyAddressBookRequest groupName(String groupName) {
this.groupName = groupName;
return this;
}
/**
* Get groupName
* @return groupName
**/
@NotNull
@Size(max=64) @Schema(required = true, description = "")
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
}
public ModifyAddressBookRequest groupUuid(String groupUuid) {
this.groupUuid = groupUuid;
return this;
}
/**
* Get groupUuid
* @return groupUuid
**/
@NotNull
@Schema(required = true, description = "")
public String getGroupUuid() {
return groupUuid;
}
public void setGroupUuid(String groupUuid) {
this.groupUuid = groupUuid;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ModifyAddressBookRequest modifyAddressBookRequest = (ModifyAddressBookRequest) o;
return Objects.equals(this.addressList, modifyAddressBookRequest.addressList) &&
Objects.equals(this.description, modifyAddressBookRequest.description) &&
Objects.equals(this.groupName, modifyAddressBookRequest.groupName) &&
Objects.equals(this.groupUuid, modifyAddressBookRequest.groupUuid);
}
@Override
public int hashCode() {
return Objects.hash(addressList, description, groupName, groupUuid);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ModifyAddressBookRequest {\n");
sb.append(" addressList: ").append(toIndentedString(addressList)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n");
sb.append(" groupUuid: ").append(toIndentedString(groupUuid)).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 - 2024 Weber Informatics LLC | Privacy Policy