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

com.infobip.model.WhatsAppWebhookInboundLocationContent 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 WhatsAppWebhookInboundLocationContent model.
 */
public class WhatsAppWebhookInboundLocationContent extends WhatsAppWebhookInboundContent {

    private Double latitude;

    private Double longitude;

    private String address;

    private String name;

    private String url;

    private WhatsAppContext context;

    private WhatsAppReferral referral;

    /**
     * Constructs a new {@link WhatsAppWebhookInboundLocationContent} instance.
     */
    public WhatsAppWebhookInboundLocationContent() {
        super("LOCATION");
    }

    /**
     * Sets latitude.
     * 

* Field description: * Latitude. The value must be between -180 and 180. *

* The field is required. * * @param latitude * @return This {@link WhatsAppWebhookInboundLocationContent instance}. */ public WhatsAppWebhookInboundLocationContent latitude(Double latitude) { this.latitude = latitude; return this; } /** * Returns latitude. *

* Field description: * Latitude. The value must be between -180 and 180. *

* The field is required. * * @return latitude */ @JsonProperty("latitude") public Double getLatitude() { return latitude; } /** * Sets latitude. *

* Field description: * Latitude. The value must be between -180 and 180. *

* The field is required. * * @param latitude */ @JsonProperty("latitude") public void setLatitude(Double latitude) { this.latitude = latitude; } /** * Sets longitude. *

* Field description: * Longitude. The value must be between -90 and 90. *

* The field is required. * * @param longitude * @return This {@link WhatsAppWebhookInboundLocationContent instance}. */ public WhatsAppWebhookInboundLocationContent longitude(Double longitude) { this.longitude = longitude; return this; } /** * Returns longitude. *

* Field description: * Longitude. The value must be between -90 and 90. *

* The field is required. * * @return longitude */ @JsonProperty("longitude") public Double getLongitude() { return longitude; } /** * Sets longitude. *

* Field description: * Longitude. The value must be between -90 and 90. *

* The field is required. * * @param longitude */ @JsonProperty("longitude") public void setLongitude(Double longitude) { this.longitude = longitude; } /** * Sets address. *

* Field description: * Location address. * * @param address * @return This {@link WhatsAppWebhookInboundLocationContent instance}. */ public WhatsAppWebhookInboundLocationContent address(String address) { this.address = address; return this; } /** * Returns address. *

* Field description: * Location address. * * @return address */ @JsonProperty("address") public String getAddress() { return address; } /** * Sets address. *

* Field description: * Location address. * * @param address */ @JsonProperty("address") public void setAddress(String address) { this.address = address; } /** * Sets name. *

* Field description: * Location name. * * @param name * @return This {@link WhatsAppWebhookInboundLocationContent instance}. */ public WhatsAppWebhookInboundLocationContent name(String name) { this.name = name; return this; } /** * Returns name. *

* Field description: * Location name. * * @return name */ @JsonProperty("name") public String getName() { return name; } /** * Sets name. *

* Field description: * Location name. * * @param name */ @JsonProperty("name") public void setName(String name) { this.name = name; } /** * Sets url. *

* Field description: * Location URL. * * @param url * @return This {@link WhatsAppWebhookInboundLocationContent instance}. */ public WhatsAppWebhookInboundLocationContent url(String url) { this.url = url; return this; } /** * Returns url. *

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

* Field description: * Location URL. * * @param url */ @JsonProperty("url") public void setUrl(String url) { this.url = url; } /** * Sets context. * * @param context * @return This {@link WhatsAppWebhookInboundLocationContent instance}. */ public WhatsAppWebhookInboundLocationContent context(WhatsAppContext context) { this.context = context; return this; } /** * Returns context. * * @return context */ @JsonProperty("context") public WhatsAppContext getContext() { return context; } /** * Sets context. * * @param context */ @JsonProperty("context") public void setContext(WhatsAppContext context) { this.context = context; } /** * Sets referral. * * @param referral * @return This {@link WhatsAppWebhookInboundLocationContent instance}. */ public WhatsAppWebhookInboundLocationContent referral(WhatsAppReferral referral) { this.referral = referral; return this; } /** * Returns referral. * * @return referral */ @JsonProperty("referral") public WhatsAppReferral getReferral() { return referral; } /** * Sets referral. * * @param referral */ @JsonProperty("referral") public void setReferral(WhatsAppReferral referral) { this.referral = referral; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } WhatsAppWebhookInboundLocationContent whatsAppWebhookInboundLocationContent = (WhatsAppWebhookInboundLocationContent) o; return Objects.equals(this.latitude, whatsAppWebhookInboundLocationContent.latitude) && Objects.equals(this.longitude, whatsAppWebhookInboundLocationContent.longitude) && Objects.equals(this.address, whatsAppWebhookInboundLocationContent.address) && Objects.equals(this.name, whatsAppWebhookInboundLocationContent.name) && Objects.equals(this.url, whatsAppWebhookInboundLocationContent.url) && Objects.equals(this.context, whatsAppWebhookInboundLocationContent.context) && Objects.equals(this.referral, whatsAppWebhookInboundLocationContent.referral) && super.equals(o); } @Override public int hashCode() { return Objects.hash(latitude, longitude, address, name, url, context, referral, super.hashCode()); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class WhatsAppWebhookInboundLocationContent {") .append(newLine) .append(" ") .append(toIndentedString(super.toString())) .append(newLine) .append(" latitude: ") .append(toIndentedString(latitude)) .append(newLine) .append(" longitude: ") .append(toIndentedString(longitude)) .append(newLine) .append(" address: ") .append(toIndentedString(address)) .append(newLine) .append(" name: ") .append(toIndentedString(name)) .append(newLine) .append(" url: ") .append(toIndentedString(url)) .append(newLine) .append(" context: ") .append(toIndentedString(context)) .append(newLine) .append(" referral: ") .append(toIndentedString(referral)) .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