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