
com.infobip.model.ViberResponseDetails Maven / Gradle / Ivy
/*
* This class is auto generated from the Infobip OpenAPI specification
* through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR),
* powered by the OpenAPI Generator (https://openapi-generator.tech).
*
* Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide
* or contact us @ [email protected].
*/
package com.infobip.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* An array of message objects of a single message or multiple messages sent under one bulk ID.
*/
public class ViberResponseDetails {
private String messageId;
private ViberMessageStatus status;
private String destination;
private Object details;
/**
* Sets messageId.
*
* Field description:
* Unique message ID. If not provided, it will be auto-generated and returned in the API response.
*
* @param messageId
* @return This {@link ViberResponseDetails instance}.
*/
public ViberResponseDetails messageId(String messageId) {
this.messageId = messageId;
return this;
}
/**
* Returns messageId.
*
* Field description:
* Unique message ID. If not provided, it will be auto-generated and returned in the API response.
*
* @return messageId
*/
@JsonProperty("messageId")
public String getMessageId() {
return messageId;
}
/**
* Sets messageId.
*
* Field description:
* Unique message ID. If not provided, it will be auto-generated and returned in the API response.
*
* @param messageId
*/
@JsonProperty("messageId")
public void setMessageId(String messageId) {
this.messageId = messageId;
}
/**
* Sets status.
*
* @param status
* @return This {@link ViberResponseDetails instance}.
*/
public ViberResponseDetails status(ViberMessageStatus status) {
this.status = status;
return this;
}
/**
* Returns status.
*
* @return status
*/
@JsonProperty("status")
public ViberMessageStatus getStatus() {
return status;
}
/**
* Sets status.
*
* @param status
*/
@JsonProperty("status")
public void setStatus(ViberMessageStatus status) {
this.status = status;
}
/**
* Sets destination.
*
* Field description:
* The destination address of the message, i.e., its recipient.
*
* @param destination
* @return This {@link ViberResponseDetails instance}.
*/
public ViberResponseDetails destination(String destination) {
this.destination = destination;
return this;
}
/**
* Returns destination.
*
* Field description:
* The destination address of the message, i.e., its recipient.
*
* @return destination
*/
@JsonProperty("destination")
public String getDestination() {
return destination;
}
/**
* Sets destination.
*
* Field description:
* The destination address of the message, i.e., its recipient.
*
* @param destination
*/
@JsonProperty("destination")
public void setDestination(String destination) {
this.destination = destination;
}
/**
* Sets details.
*
* Field description:
* Other details of the message.
*
* @param details
* @return This {@link ViberResponseDetails instance}.
*/
public ViberResponseDetails details(Object details) {
this.details = details;
return this;
}
/**
* Returns details.
*
* Field description:
* Other details of the message.
*
* @return details
*/
@JsonProperty("details")
public Object getDetails() {
return details;
}
/**
* Sets details.
*
* Field description:
* Other details of the message.
*
* @param details
*/
@JsonProperty("details")
public void setDetails(Object details) {
this.details = details;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ViberResponseDetails viberResponseDetails = (ViberResponseDetails) o;
return Objects.equals(this.messageId, viberResponseDetails.messageId)
&& Objects.equals(this.status, viberResponseDetails.status)
&& Objects.equals(this.destination, viberResponseDetails.destination)
&& Objects.equals(this.details, viberResponseDetails.details);
}
@Override
public int hashCode() {
return Objects.hash(messageId, status, destination, details);
}
@Override
public String toString() {
String newLine = System.lineSeparator();
return new StringBuilder()
.append("class ViberResponseDetails {")
.append(newLine)
.append(" messageId: ")
.append(toIndentedString(messageId))
.append(newLine)
.append(" status: ")
.append(toIndentedString(status))
.append(newLine)
.append(" destination: ")
.append(toIndentedString(destination))
.append(newLine)
.append(" details: ")
.append(toIndentedString(details))
.append(newLine)
.append("}")
.toString();
}
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
String lineSeparator = System.lineSeparator();
String lineSeparatorFollowedByIndentation = lineSeparator + " ";
return o.toString().replace(lineSeparator, lineSeparatorFollowedByIndentation);
}
}