All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.infobip.model.WhatsAppUrl 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;

/**
 * Array of urls information.
 */
public class WhatsAppUrl {

    private String url;

    private String type;

    /**
     * Sets url.
     * 

* Field description: * Contact's url. * * @param url * @return This {@link WhatsAppUrl instance}. */ public WhatsAppUrl url(String url) { this.url = url; return this; } /** * Returns url. *

* Field description: * Contact's url. * * @return url */ @JsonProperty("url") public String getUrl() { return url; } /** * Sets url. *

* Field description: * Contact's url. * * @param url */ @JsonProperty("url") public void setUrl(String url) { this.url = url; } /** * Sets type. *

* Field description: * Type of the url. Can be `HOME` or `WORK`. * * @param type * @return This {@link WhatsAppUrl instance}. */ public WhatsAppUrl type(String type) { this.type = type; return this; } /** * Returns type. *

* Field description: * Type of the url. Can be `HOME` or `WORK`. * * @return type */ @JsonProperty("type") public String getType() { return type; } /** * Sets type. *

* Field description: * Type of the url. Can be `HOME` or `WORK`. * * @param type */ @JsonProperty("type") public void setType(String type) { this.type = type; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } WhatsAppUrl whatsAppUrl = (WhatsAppUrl) o; return Objects.equals(this.url, whatsAppUrl.url) && Objects.equals(this.type, whatsAppUrl.type); } @Override public int hashCode() { return Objects.hash(url, type); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class WhatsAppUrl {") .append(newLine) .append(" url: ") .append(toIndentedString(url)) .append(newLine) .append(" type: ") .append(toIndentedString(type)) .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); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy