001// Generated by delombok at Fri Oct 04 16:05:59 CEST 2024
002/*
003 * Copyright (c) 2010-2024 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;
024
025import com.restfb.Facebook;
026
027/**
028 * Represents a location (address and latitude/longitude).
029 * <p>
030 * This is used by several Graph API types, e.g. <tt>{@link Post}</tt> and <tt>{@link Page}</tt>.
031 * 
032 * @author <a href="http://restfb.com">Mark Allen</a>
033 * @since 1.6.8
034 */
035public class Location extends FacebookType {
036  /**
037   * The street address of this location.
038   * 
039   */
040  @Facebook
041  private String street;
042  /**
043   * The city name of this location.
044   * 
045   */
046  @Facebook
047  private String city;
048  /**
049   * City ID. Any city identified is also a city you can use for targeting ads.
050   */
051  @Facebook("city_id")
052  private String cityId;
053  /**
054   * The state name of this location.
055   * 
056   */
057  @Facebook
058  private String state;
059  /**
060   * The country name of this location.
061   * 
062   */
063  @Facebook
064  private String country;
065  /**
066   * Country code
067   */
068  @Facebook("country_code")
069  private String countryCode;
070  /**
071   * The postal code of this location.
072   * 
073   */
074  @Facebook
075  private String zip;
076  /**
077   * The latitude of this location.
078   * 
079   */
080  @Facebook
081  private Double latitude;
082  /**
083   * The longitude of this location.
084   * 
085   */
086  @Facebook
087  private Double longitude;
088  /**
089   * The region of this location.
090   */
091  @Facebook
092  private String region;
093  /**
094   * Region ID. Specifies a geographic region, such as California.
095   * An identified region is the same as one you can use to target ads.
096   */
097  @Facebook("region_id")
098  private String regionId;
099  /**
100   * The name of this location.
101   */
102  @Facebook
103  private String name;
104  /**
105   * The parent location if this location is located within another location.
106   */
107  @Facebook("located_in")
108  private String locatedIn;
109  private static final long serialVersionUID = 1L;
110
111  /**
112   * The street address of this location.
113   * 
114   * @return The street address of this location.
115   */
116  @java.lang.SuppressWarnings("all")
117  public String getStreet() {
118    return this.street;
119  }
120
121  /**
122   * The street address of this location.
123   * 
124   */
125  @java.lang.SuppressWarnings("all")
126  public void setStreet(final String street) {
127    this.street = street;
128  }
129
130  /**
131   * The city name of this location.
132   * 
133   * @return The city name of this location.
134   */
135  @java.lang.SuppressWarnings("all")
136  public String getCity() {
137    return this.city;
138  }
139
140  /**
141   * The city name of this location.
142   * 
143   */
144  @java.lang.SuppressWarnings("all")
145  public void setCity(final String city) {
146    this.city = city;
147  }
148
149  /**
150   * City ID. Any city identified is also a city you can use for targeting ads.
151   */
152  @java.lang.SuppressWarnings("all")
153  public String getCityId() {
154    return this.cityId;
155  }
156
157  /**
158   * City ID. Any city identified is also a city you can use for targeting ads.
159   */
160  @java.lang.SuppressWarnings("all")
161  public void setCityId(final String cityId) {
162    this.cityId = cityId;
163  }
164
165  /**
166   * The state name of this location.
167   * 
168   * @return The state name of this location.
169   */
170  @java.lang.SuppressWarnings("all")
171  public String getState() {
172    return this.state;
173  }
174
175  /**
176   * The state name of this location.
177   * 
178   */
179  @java.lang.SuppressWarnings("all")
180  public void setState(final String state) {
181    this.state = state;
182  }
183
184  /**
185   * The country name of this location.
186   * 
187   * @return The country name of this location.
188   */
189  @java.lang.SuppressWarnings("all")
190  public String getCountry() {
191    return this.country;
192  }
193
194  /**
195   * The country name of this location.
196   * 
197   */
198  @java.lang.SuppressWarnings("all")
199  public void setCountry(final String country) {
200    this.country = country;
201  }
202
203  /**
204   * Country code
205   *
206   * @return the country code
207   */
208  @java.lang.SuppressWarnings("all")
209  public String getCountryCode() {
210    return this.countryCode;
211  }
212
213  /**
214   * Country code
215   */
216  @java.lang.SuppressWarnings("all")
217  public void setCountryCode(final String countryCode) {
218    this.countryCode = countryCode;
219  }
220
221  /**
222   * The postal code of this location.
223   * 
224   * @return The postal code of this location.
225   */
226  @java.lang.SuppressWarnings("all")
227  public String getZip() {
228    return this.zip;
229  }
230
231  /**
232   * The postal code of this location.
233   * 
234   */
235  @java.lang.SuppressWarnings("all")
236  public void setZip(final String zip) {
237    this.zip = zip;
238  }
239
240  /**
241   * The latitude of this location.
242   * 
243   * @return The latitude of this location.
244   */
245  @java.lang.SuppressWarnings("all")
246  public Double getLatitude() {
247    return this.latitude;
248  }
249
250  /**
251   * The latitude of this location.
252   * 
253   */
254  @java.lang.SuppressWarnings("all")
255  public void setLatitude(final Double latitude) {
256    this.latitude = latitude;
257  }
258
259  /**
260   * The longitude of this location.
261   * 
262   * @return The longitude of this location.
263   */
264  @java.lang.SuppressWarnings("all")
265  public Double getLongitude() {
266    return this.longitude;
267  }
268
269  /**
270   * The longitude of this location.
271   * 
272   */
273  @java.lang.SuppressWarnings("all")
274  public void setLongitude(final Double longitude) {
275    this.longitude = longitude;
276  }
277
278  /**
279   * The region of this location.
280   *
281   * @return The region of this location
282   */
283  @java.lang.SuppressWarnings("all")
284  public String getRegion() {
285    return this.region;
286  }
287
288  /**
289   * The region of this location.
290   */
291  @java.lang.SuppressWarnings("all")
292  public void setRegion(final String region) {
293    this.region = region;
294  }
295
296  /**
297   * Region ID. Specifies a geographic region, such as California.
298   * An identified region is the same as one you can use to target ads.
299   *
300   * @return the region id
301   */
302  @java.lang.SuppressWarnings("all")
303  public String getRegionId() {
304    return this.regionId;
305  }
306
307  /**
308   * Region ID. Specifies a geographic region, such as California.
309   * An identified region is the same as one you can use to target ads.
310   */
311  @java.lang.SuppressWarnings("all")
312  public void setRegionId(final String regionId) {
313    this.regionId = regionId;
314  }
315
316  /**
317   * The name of this location.
318   *
319   * @return The name of this location
320   */
321  @java.lang.SuppressWarnings("all")
322  public String getName() {
323    return this.name;
324  }
325
326  /**
327   * The name of this location.
328   */
329  @java.lang.SuppressWarnings("all")
330  public void setName(final String name) {
331    this.name = name;
332  }
333
334  /**
335   * The parent location if this location is located within another location.
336   *
337   * @return The parent location if this location is located within another location
338   */
339  @java.lang.SuppressWarnings("all")
340  public String getLocatedIn() {
341    return this.locatedIn;
342  }
343
344  /**
345   * The parent location if this location is located within another location.
346   */
347  @java.lang.SuppressWarnings("all")
348  public void setLocatedIn(final String locatedIn) {
349    this.locatedIn = locatedIn;
350  }
351}