com.mypurecloud.sdk.model.CreateCallbackResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-client Show documentation
Show all versions of platform-client Show documentation
The official Java SDK for the PureCloud Platform API SDK
The newest version!
package com.mypurecloud.sdk.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mypurecloud.sdk.model.CallbackIdentifier;
import com.mypurecloud.sdk.model.UriReference;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
/**
* CreateCallbackResponse
*/
public class CreateCallbackResponse implements Serializable {
private UriReference conversation = null;
private List callbackIdentifiers = new ArrayList();
/**
* The conversation associated with the callback
**/
public CreateCallbackResponse conversation(UriReference conversation) {
this.conversation = conversation;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "The conversation associated with the callback")
@JsonProperty("conversation")
public UriReference getConversation() {
return conversation;
}
public void setConversation(UriReference conversation) {
this.conversation = conversation;
}
/**
* The list of communication identifiers for the callback participants
**/
public CreateCallbackResponse callbackIdentifiers(List callbackIdentifiers) {
this.callbackIdentifiers = callbackIdentifiers;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "The list of communication identifiers for the callback participants")
@JsonProperty("callbackIdentifiers")
public List getCallbackIdentifiers() {
return callbackIdentifiers;
}
public void setCallbackIdentifiers(List callbackIdentifiers) {
this.callbackIdentifiers = callbackIdentifiers;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateCallbackResponse createCallbackResponse = (CreateCallbackResponse) o;
return Objects.equals(this.conversation, createCallbackResponse.conversation) &&
Objects.equals(this.callbackIdentifiers, createCallbackResponse.callbackIdentifiers);
}
@Override
public int hashCode() {
return Objects.hash(conversation, callbackIdentifiers);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateCallbackResponse {\n");
sb.append(" conversation: ").append(toIndentedString(conversation)).append("\n");
sb.append(" callbackIdentifiers: ").append(toIndentedString(callbackIdentifiers)).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 ");
}
}