
com.infobip.model.MmsInboundDestinationTo 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;
/**
* Represents MmsInboundDestinationTo model.
*/
public class MmsInboundDestinationTo {
private String to;
/**
* Sets to.
*
* Field description:
* Message destination address.
*
* @param to
* @return This {@link MmsInboundDestinationTo instance}.
*/
public MmsInboundDestinationTo to(String to) {
this.to = to;
return this;
}
/**
* Returns to.
*
* Field description:
* Message destination address.
*
* @return to
*/
@JsonProperty("to")
public String getTo() {
return to;
}
/**
* Sets to.
*
* Field description:
* Message destination address.
*
* @param to
*/
@JsonProperty("to")
public void setTo(String to) {
this.to = to;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MmsInboundDestinationTo mmsInboundDestinationTo = (MmsInboundDestinationTo) o;
return Objects.equals(this.to, mmsInboundDestinationTo.to);
}
@Override
public int hashCode() {
return Objects.hash(to);
}
@Override
public String toString() {
String newLine = System.lineSeparator();
return new StringBuilder()
.append("class MmsInboundDestinationTo {")
.append(newLine)
.append(" to: ")
.append(toIndentedString(to))
.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);
}
}