001// Generated by delombok at Thu Aug 13 13:56:44 UTC 2026
002/*
003 * Copyright (c) 2010-2026 Mark Allen, Norbert Bartels.
004 *
005 * Permission is hereby granted, free of charge, to any person obtaining a copy
006 * of this software and associated documentation files (the "Software"), to deal
007 * in the Software without restriction, including without limitation the rights
008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
009 * copies of the Software, and to permit persons to whom the Software is
010 * furnished to do so, subject to the following conditions:
011 *
012 * The above copyright notice and this permission notice shall be included in
013 * all copies or substantial portions of the Software.
014 *
015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
021 * THE SOFTWARE.
022 */
023package com.restfb.types.threads;
024
025import com.restfb.Facebook;
026import com.restfb.types.FacebookType;
027import com.restfb.types.NamedFacebookType;
028
029/**
030 * Represents a
031 * <a href="https://developers.facebook.com/docs/threads/create-posts/location-tagging#location-retrieval">Location</a>
032 * in Threads.
033 */
034public class TdLocation extends NamedFacebookType {
035  private static final long serialVersionUID = 1L;
036  /**
037   * The address of the location.
038   */
039  @Facebook
040  private String address;
041  /**
042   * The city of the location.
043   */
044  @Facebook
045  private String city;
046  /**
047   * The country code of the location.
048   */
049  @Facebook
050  private String country;
051  /**
052   * The latitude of the location.
053   */
054  @Facebook
055  private Double latitude;
056  /**
057   * The longitude of the location.
058   */
059  @Facebook
060  private Double longitude;
061  /**
062   * The postal code of the location.
063   */
064  @Facebook("postal_code")
065  private String postalCode;
066
067  /**
068   * The address of the location.
069   */
070  @java.lang.SuppressWarnings("all")
071  @lombok.Generated
072  public String getAddress() {
073    return this.address;
074  }
075
076  /**
077   * The address of the location.
078   */
079  @java.lang.SuppressWarnings("all")
080  @lombok.Generated
081  public void setAddress(final String address) {
082    this.address = address;
083  }
084
085  /**
086   * The city of the location.
087   */
088  @java.lang.SuppressWarnings("all")
089  @lombok.Generated
090  public String getCity() {
091    return this.city;
092  }
093
094  /**
095   * The city of the location.
096   */
097  @java.lang.SuppressWarnings("all")
098  @lombok.Generated
099  public void setCity(final String city) {
100    this.city = city;
101  }
102
103  /**
104   * The country code of the location.
105   */
106  @java.lang.SuppressWarnings("all")
107  @lombok.Generated
108  public String getCountry() {
109    return this.country;
110  }
111
112  /**
113   * The country code of the location.
114   */
115  @java.lang.SuppressWarnings("all")
116  @lombok.Generated
117  public void setCountry(final String country) {
118    this.country = country;
119  }
120
121  /**
122   * The latitude of the location.
123   */
124  @java.lang.SuppressWarnings("all")
125  @lombok.Generated
126  public Double getLatitude() {
127    return this.latitude;
128  }
129
130  /**
131   * The latitude of the location.
132   */
133  @java.lang.SuppressWarnings("all")
134  @lombok.Generated
135  public void setLatitude(final Double latitude) {
136    this.latitude = latitude;
137  }
138
139  /**
140   * The longitude of the location.
141   */
142  @java.lang.SuppressWarnings("all")
143  @lombok.Generated
144  public Double getLongitude() {
145    return this.longitude;
146  }
147
148  /**
149   * The longitude of the location.
150   */
151  @java.lang.SuppressWarnings("all")
152  @lombok.Generated
153  public void setLongitude(final Double longitude) {
154    this.longitude = longitude;
155  }
156
157  /**
158   * The postal code of the location.
159   */
160  @java.lang.SuppressWarnings("all")
161  @lombok.Generated
162  public String getPostalCode() {
163    return this.postalCode;
164  }
165
166  /**
167   * The postal code of the location.
168   */
169  @java.lang.SuppressWarnings("all")
170  @lombok.Generated
171  public void setPostalCode(final String postalCode) {
172    this.postalCode = postalCode;
173  }
174}