001// Generated by delombok at Tue Jun 03 09:05:42 UTC 2025
002/*
003 * Copyright (c) 2010-2025 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  public String getAddress() {
072    return this.address;
073  }
074
075  /**
076   * The address of the location.
077   */
078  @java.lang.SuppressWarnings("all")
079  public void setAddress(final String address) {
080    this.address = address;
081  }
082
083  /**
084   * The city of the location.
085   */
086  @java.lang.SuppressWarnings("all")
087  public String getCity() {
088    return this.city;
089  }
090
091  /**
092   * The city of the location.
093   */
094  @java.lang.SuppressWarnings("all")
095  public void setCity(final String city) {
096    this.city = city;
097  }
098
099  /**
100   * The country code of the location.
101   */
102  @java.lang.SuppressWarnings("all")
103  public String getCountry() {
104    return this.country;
105  }
106
107  /**
108   * The country code of the location.
109   */
110  @java.lang.SuppressWarnings("all")
111  public void setCountry(final String country) {
112    this.country = country;
113  }
114
115  /**
116   * The latitude of the location.
117   */
118  @java.lang.SuppressWarnings("all")
119  public Double getLatitude() {
120    return this.latitude;
121  }
122
123  /**
124   * The latitude of the location.
125   */
126  @java.lang.SuppressWarnings("all")
127  public void setLatitude(final Double latitude) {
128    this.latitude = latitude;
129  }
130
131  /**
132   * The longitude of the location.
133   */
134  @java.lang.SuppressWarnings("all")
135  public Double getLongitude() {
136    return this.longitude;
137  }
138
139  /**
140   * The longitude of the location.
141   */
142  @java.lang.SuppressWarnings("all")
143  public void setLongitude(final Double longitude) {
144    this.longitude = longitude;
145  }
146
147  /**
148   * The postal code of the location.
149   */
150  @java.lang.SuppressWarnings("all")
151  public String getPostalCode() {
152    return this.postalCode;
153  }
154
155  /**
156   * The postal code of the location.
157   */
158  @java.lang.SuppressWarnings("all")
159  public void setPostalCode(final String postalCode) {
160    this.postalCode = postalCode;
161  }
162}