001// Generated by delombok at Fri Nov 22 22:30:55 CET 2019
002/**
003 * Copyright (c) 2010-2019 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  @Facebook
040  private String street;
041  /**
042   * The city name of this location.
043   */
044  @Facebook
045  private String city;
046  /**
047   * The state name of this location.
048   */
049  @Facebook
050  private String state;
051  /**
052   * The country name of this location.
053   */
054  @Facebook
055  private String country;
056  /**
057   * The postal code of this location.
058   */
059  @Facebook
060  private String zip;
061  /**
062   * The latitude of this location.
063   */
064  @Facebook
065  private Double latitude;
066  /**
067   * The longitude of this location.
068   */
069  @Facebook
070  private Double longitude;
071  /**
072   * The region of this location.
073   */
074  @Facebook
075  private String region;
076  /**
077   * The name of this location.
078   */
079  @Facebook
080  private String name;
081  /**
082   * The parent location if this location is located within another location.
083   */
084  @Facebook("located_in")
085  private String locatedIn;
086  private static final long serialVersionUID = 1L;
087
088  /**
089   * The street address of this location.
090   * 
091   * @return The street address of this location.
092   */
093  @java.lang.SuppressWarnings("all")
094  public String getStreet() {
095    return this.street;
096  }
097
098  /**
099   * The street address of this location.
100   */
101  @java.lang.SuppressWarnings("all")
102  public void setStreet(final String street) {
103    this.street = street;
104  }
105
106  /**
107   * The city name of this location.
108   * 
109   * @return The city name of this location.
110   */
111  @java.lang.SuppressWarnings("all")
112  public String getCity() {
113    return this.city;
114  }
115
116  /**
117   * The city name of this location.
118   */
119  @java.lang.SuppressWarnings("all")
120  public void setCity(final String city) {
121    this.city = city;
122  }
123
124  /**
125   * The state name of this location.
126   * 
127   * @return The state name of this location.
128   */
129  @java.lang.SuppressWarnings("all")
130  public String getState() {
131    return this.state;
132  }
133
134  /**
135   * The state name of this location.
136   */
137  @java.lang.SuppressWarnings("all")
138  public void setState(final String state) {
139    this.state = state;
140  }
141
142  /**
143   * The country name of this location.
144   * 
145   * @return The country name of this location.
146   */
147  @java.lang.SuppressWarnings("all")
148  public String getCountry() {
149    return this.country;
150  }
151
152  /**
153   * The country name of this location.
154   */
155  @java.lang.SuppressWarnings("all")
156  public void setCountry(final String country) {
157    this.country = country;
158  }
159
160  /**
161   * The postal code of this location.
162   * 
163   * @return The postal code of this location.
164   */
165  @java.lang.SuppressWarnings("all")
166  public String getZip() {
167    return this.zip;
168  }
169
170  /**
171   * The postal code of this location.
172   */
173  @java.lang.SuppressWarnings("all")
174  public void setZip(final String zip) {
175    this.zip = zip;
176  }
177
178  /**
179   * The latitude of this location.
180   * 
181   * @return The latitude of this location.
182   */
183  @java.lang.SuppressWarnings("all")
184  public Double getLatitude() {
185    return this.latitude;
186  }
187
188  /**
189   * The latitude of this location.
190   */
191  @java.lang.SuppressWarnings("all")
192  public void setLatitude(final Double latitude) {
193    this.latitude = latitude;
194  }
195
196  /**
197   * The longitude of this location.
198   * 
199   * @return The longitude of this location.
200   */
201  @java.lang.SuppressWarnings("all")
202  public Double getLongitude() {
203    return this.longitude;
204  }
205
206  /**
207   * The longitude of this location.
208   */
209  @java.lang.SuppressWarnings("all")
210  public void setLongitude(final Double longitude) {
211    this.longitude = longitude;
212  }
213
214  /**
215   * The region of this location.
216   *
217   * @return The region of this location
218   */
219  @java.lang.SuppressWarnings("all")
220  public String getRegion() {
221    return this.region;
222  }
223
224  /**
225   * The region of this location.
226   */
227  @java.lang.SuppressWarnings("all")
228  public void setRegion(final String region) {
229    this.region = region;
230  }
231
232  /**
233   * The name of this location.
234   *
235   * @return The name of this location
236   */
237  @java.lang.SuppressWarnings("all")
238  public String getName() {
239    return this.name;
240  }
241
242  /**
243   * The name of this location.
244   */
245  @java.lang.SuppressWarnings("all")
246  public void setName(final String name) {
247    this.name = name;
248  }
249
250  /**
251   * The parent location if this location is located within another location.
252   *
253   * @return The parent location if this location is located within another location
254   */
255  @java.lang.SuppressWarnings("all")
256  public String getLocatedIn() {
257    return this.locatedIn;
258  }
259
260  /**
261   * The parent location if this location is located within another location.
262   */
263  @java.lang.SuppressWarnings("all")
264  public void setLocatedIn(final String locatedIn) {
265    this.locatedIn = locatedIn;
266  }
267}