
com.infobip.model.WhatsAppUrlContent Maven / Gradle / Ivy
/*
* Infobip Client API Libraries OpenAPI Specification
* OpenAPI specification containing public endpoints supported in client API libraries.
*
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.infobip.model;
import com.google.gson.annotations.SerializedName;
import java.util.Objects;
/** Array of urls information. */
public class WhatsAppUrlContent {
public static final String SERIALIZED_NAME_URL = "url";
@SerializedName(SERIALIZED_NAME_URL)
private String url;
public static final String SERIALIZED_NAME_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
private WhatsAppUrlType type;
public WhatsAppUrlContent url(String url) {
this.url = url;
return this;
}
/**
* Contact's url.
*
* @return url
*/
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public WhatsAppUrlContent type(WhatsAppUrlType type) {
this.type = type;
return this;
}
/**
* Get type
*
* @return type
*/
public WhatsAppUrlType getType() {
return type;
}
public void setType(WhatsAppUrlType type) {
this.type = type;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
WhatsAppUrlContent whatsAppUrlContent = (WhatsAppUrlContent) o;
return Objects.equals(this.url, whatsAppUrlContent.url)
&& Objects.equals(this.type, whatsAppUrlContent.type);
}
@Override
public int hashCode() {
return Objects.hash(url, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WhatsAppUrlContent {\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy