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

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

    private Double latitude;

    private Double longitude;

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

    /**
     * Sets latitude.
     * 

* Field description: * Latitude of a location sent in the header. *

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

* Field description: * Latitude of a location sent in the header. *

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

* Field description: * Latitude of a location sent in the header. *

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

* Field description: * Longitude of a location sent in the header. *

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

* Field description: * Longitude of a location sent in the header. *

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

* Field description: * Longitude of a location sent in the header. *

* The field is required. * * @param longitude */ @JsonProperty("longitude") public void setLongitude(Double longitude) { this.longitude = longitude; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } WhatsAppTemplateLocationHeaderContent whatsAppTemplateLocationHeaderContent = (WhatsAppTemplateLocationHeaderContent) o; return Objects.equals(this.latitude, whatsAppTemplateLocationHeaderContent.latitude) && Objects.equals(this.longitude, whatsAppTemplateLocationHeaderContent.longitude) && super.equals(o); } @Override public int hashCode() { return Objects.hash(latitude, longitude, super.hashCode()); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class WhatsAppTemplateLocationHeaderContent {") .append(newLine) .append(" ") .append(toIndentedString(super.toString())) .append(newLine) .append(" latitude: ") .append(toIndentedString(latitude)) .append(newLine) .append(" longitude: ") .append(toIndentedString(longitude)) .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