com.genesys.internal.workspace.model.TargetInformation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of workspace Show documentation
Show all versions of workspace Show documentation
A Java library to interface to Genesys Workspace public API
/*
* Workspace API
* Agent API
*
* OpenAPI spec version: 1.0.0
*
*
* 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.genesys.internal.workspace.model;
import java.util.Objects;
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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* TargetInformation
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-01-16T18:12:18.490Z")
public class TargetInformation {
@SerializedName("type")
private String type = null;
@SerializedName("id")
private String id = null;
@SerializedName("firstName")
private String firstName = null;
@SerializedName("lastName")
private String lastName = null;
@SerializedName("emailAddresses")
private List emailAddresses = null;
@SerializedName("numbers")
private List numbers = null;
public TargetInformation type(String type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@ApiModelProperty(value = "")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public TargetInformation id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@ApiModelProperty(value = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public TargetInformation firstName(String firstName) {
this.firstName = firstName;
return this;
}
/**
* Get firstName
* @return firstName
**/
@ApiModelProperty(value = "")
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public TargetInformation lastName(String lastName) {
this.lastName = lastName;
return this;
}
/**
* Get lastName
* @return lastName
**/
@ApiModelProperty(value = "")
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public TargetInformation emailAddresses(List emailAddresses) {
this.emailAddresses = emailAddresses;
return this;
}
public TargetInformation addEmailAddressesItem(String emailAddressesItem) {
if (this.emailAddresses == null) {
this.emailAddresses = new ArrayList();
}
this.emailAddresses.add(emailAddressesItem);
return this;
}
/**
* Get emailAddresses
* @return emailAddresses
**/
@ApiModelProperty(value = "")
public List getEmailAddresses() {
return emailAddresses;
}
public void setEmailAddresses(List emailAddresses) {
this.emailAddresses = emailAddresses;
}
public TargetInformation numbers(List numbers) {
this.numbers = numbers;
return this;
}
public TargetInformation addNumbersItem(String numbersItem) {
if (this.numbers == null) {
this.numbers = new ArrayList();
}
this.numbers.add(numbersItem);
return this;
}
/**
* Get numbers
* @return numbers
**/
@ApiModelProperty(value = "")
public List getNumbers() {
return numbers;
}
public void setNumbers(List numbers) {
this.numbers = numbers;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TargetInformation targetInformation = (TargetInformation) o;
return Objects.equals(this.type, targetInformation.type) &&
Objects.equals(this.id, targetInformation.id) &&
Objects.equals(this.firstName, targetInformation.firstName) &&
Objects.equals(this.lastName, targetInformation.lastName) &&
Objects.equals(this.emailAddresses, targetInformation.emailAddresses) &&
Objects.equals(this.numbers, targetInformation.numbers);
}
@Override
public int hashCode() {
return Objects.hash(type, id, firstName, lastName, emailAddresses, numbers);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TargetInformation {\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" emailAddresses: ").append(toIndentedString(emailAddresses)).append("\n");
sb.append(" numbers: ").append(toIndentedString(numbers)).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