001// Generated by delombok at Thu Mar 06 11:40: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.ads; 024 025import java.util.ArrayList; 026import java.util.Date; 027import java.util.List; 028import com.restfb.Facebook; 029import com.restfb.types.Page; 030 031/** 032 * Represents the <a href="https://developers.facebook.com/docs/marketing-api/businessmanager">Business type</a>. 033 */ 034public class Business extends NamedAdsObject { 035 private static final long serialVersionUID = 1L; 036 /** 037 * The creation time of this business. 038 */ 039 @Facebook("creation_time") 040 private Date creationTime; 041 /** 042 * The creation time of this business. 043 */ 044 @Facebook("created_time") 045 private Date createdTime; 046 /** 047 * The creator of this business. 048 */ 049 @Facebook("created_by") 050 private NamedAdsObject createdBy; 051 /** 052 * Specifies whether offline analytics for business is blocked. 053 */ 054 @Facebook("block_offline_analytics") 055 private Boolean blockOfflineAnalytics; 056 /** 057 * The update time of the extended credits for this business. 058 */ 059 @Facebook("extended_updated_time") 060 private Date extendedUpdatedTime; 061 /** 062 * If true, indicates the business is hidden. 063 */ 064 @Facebook("is_hidden") 065 private Boolean isHidden; 066 /** 067 * URI for business profile page. 068 */ 069 @Facebook 070 private String link; 071 /** 072 * The ID for the payment account of this business. 073 */ 074 @Facebook("payment_account_id") 075 private String paymentAccountId; 076 /** 077 * The primary Facebook Page for this business. 078 */ 079 @Facebook("primary_page") 080 private Page primaryPage; 081 /** 082 * The profile picture URI of the business. 083 */ 084 @Facebook("profile_picture_uri") 085 private String profilePictureUri; 086 /** 087 * This business's timezone. 088 */ 089 @Facebook("timezone_id") 090 private Integer timezoneId; 091 @Facebook("two_factor_type") 092 private String twoFactorType; 093 /** 094 * The time when this business was last updated. 095 */ 096 @Facebook("update_time") 097 private Date updateTime; 098 /** 099 * The person's name who last updated this business. 100 */ 101 @Facebook("updated_by") 102 private NamedAdsObject updatedBy; 103 @Facebook("user_access_expire_time") 104 private Date userAccessExpireTime; 105 /** 106 * Verification status for this business. 107 */ 108 @Facebook("verification_status") 109 private String verificationStatus; 110 /** 111 * The vertical industry that this business associates with, or belongs to. 112 */ 113 @Facebook 114 private String vertical; 115 /** 116 * The ID for the vertical industry. 117 */ 118 @Facebook("vertical_id") 119 private Integer verticalId; 120 /** 121 * This business owns these pages. 122 */ 123 @Facebook("owned_pages") 124 private List<Page> ownedPages = new ArrayList<>(); 125 126 /** 127 * The creation time of this business. 128 */ 129 @java.lang.SuppressWarnings("all") 130 public Date getCreationTime() { 131 return this.creationTime; 132 } 133 134 /** 135 * The creation time of this business. 136 */ 137 @java.lang.SuppressWarnings("all") 138 public void setCreationTime(final Date creationTime) { 139 this.creationTime = creationTime; 140 } 141 142 /** 143 * The creation time of this business. 144 */ 145 @java.lang.SuppressWarnings("all") 146 public Date getCreatedTime() { 147 return this.createdTime; 148 } 149 150 /** 151 * The creation time of this business. 152 */ 153 @java.lang.SuppressWarnings("all") 154 public void setCreatedTime(final Date createdTime) { 155 this.createdTime = createdTime; 156 } 157 158 /** 159 * The creator of this business. 160 */ 161 @java.lang.SuppressWarnings("all") 162 public NamedAdsObject getCreatedBy() { 163 return this.createdBy; 164 } 165 166 /** 167 * The creator of this business. 168 */ 169 @java.lang.SuppressWarnings("all") 170 public void setCreatedBy(final NamedAdsObject createdBy) { 171 this.createdBy = createdBy; 172 } 173 174 /** 175 * Specifies whether offline analytics for business is blocked. 176 */ 177 @java.lang.SuppressWarnings("all") 178 public Boolean getBlockOfflineAnalytics() { 179 return this.blockOfflineAnalytics; 180 } 181 182 /** 183 * Specifies whether offline analytics for business is blocked. 184 */ 185 @java.lang.SuppressWarnings("all") 186 public void setBlockOfflineAnalytics(final Boolean blockOfflineAnalytics) { 187 this.blockOfflineAnalytics = blockOfflineAnalytics; 188 } 189 190 /** 191 * The update time of the extended credits for this business. 192 */ 193 @java.lang.SuppressWarnings("all") 194 public Date getExtendedUpdatedTime() { 195 return this.extendedUpdatedTime; 196 } 197 198 /** 199 * The update time of the extended credits for this business. 200 */ 201 @java.lang.SuppressWarnings("all") 202 public void setExtendedUpdatedTime(final Date extendedUpdatedTime) { 203 this.extendedUpdatedTime = extendedUpdatedTime; 204 } 205 206 /** 207 * If true, indicates the business is hidden. 208 */ 209 @java.lang.SuppressWarnings("all") 210 public Boolean getIsHidden() { 211 return this.isHidden; 212 } 213 214 /** 215 * If true, indicates the business is hidden. 216 */ 217 @java.lang.SuppressWarnings("all") 218 public void setIsHidden(final Boolean isHidden) { 219 this.isHidden = isHidden; 220 } 221 222 /** 223 * URI for business profile page. 224 */ 225 @java.lang.SuppressWarnings("all") 226 public String getLink() { 227 return this.link; 228 } 229 230 /** 231 * URI for business profile page. 232 */ 233 @java.lang.SuppressWarnings("all") 234 public void setLink(final String link) { 235 this.link = link; 236 } 237 238 /** 239 * The ID for the payment account of this business. 240 */ 241 @java.lang.SuppressWarnings("all") 242 public String getPaymentAccountId() { 243 return this.paymentAccountId; 244 } 245 246 /** 247 * The ID for the payment account of this business. 248 */ 249 @java.lang.SuppressWarnings("all") 250 public void setPaymentAccountId(final String paymentAccountId) { 251 this.paymentAccountId = paymentAccountId; 252 } 253 254 /** 255 * The primary Facebook Page for this business. 256 */ 257 @java.lang.SuppressWarnings("all") 258 public Page getPrimaryPage() { 259 return this.primaryPage; 260 } 261 262 /** 263 * The primary Facebook Page for this business. 264 */ 265 @java.lang.SuppressWarnings("all") 266 public void setPrimaryPage(final Page primaryPage) { 267 this.primaryPage = primaryPage; 268 } 269 270 /** 271 * The profile picture URI of the business. 272 */ 273 @java.lang.SuppressWarnings("all") 274 public String getProfilePictureUri() { 275 return this.profilePictureUri; 276 } 277 278 /** 279 * The profile picture URI of the business. 280 */ 281 @java.lang.SuppressWarnings("all") 282 public void setProfilePictureUri(final String profilePictureUri) { 283 this.profilePictureUri = profilePictureUri; 284 } 285 286 /** 287 * This business's timezone. 288 */ 289 @java.lang.SuppressWarnings("all") 290 public Integer getTimezoneId() { 291 return this.timezoneId; 292 } 293 294 /** 295 * This business's timezone. 296 */ 297 @java.lang.SuppressWarnings("all") 298 public void setTimezoneId(final Integer timezoneId) { 299 this.timezoneId = timezoneId; 300 } 301 302 @java.lang.SuppressWarnings("all") 303 public String getTwoFactorType() { 304 return this.twoFactorType; 305 } 306 307 @java.lang.SuppressWarnings("all") 308 public void setTwoFactorType(final String twoFactorType) { 309 this.twoFactorType = twoFactorType; 310 } 311 312 /** 313 * The time when this business was last updated. 314 */ 315 @java.lang.SuppressWarnings("all") 316 public Date getUpdateTime() { 317 return this.updateTime; 318 } 319 320 /** 321 * The time when this business was last updated. 322 */ 323 @java.lang.SuppressWarnings("all") 324 public void setUpdateTime(final Date updateTime) { 325 this.updateTime = updateTime; 326 } 327 328 /** 329 * The person's name who last updated this business. 330 */ 331 @java.lang.SuppressWarnings("all") 332 public NamedAdsObject getUpdatedBy() { 333 return this.updatedBy; 334 } 335 336 /** 337 * The person's name who last updated this business. 338 */ 339 @java.lang.SuppressWarnings("all") 340 public void setUpdatedBy(final NamedAdsObject updatedBy) { 341 this.updatedBy = updatedBy; 342 } 343 344 @java.lang.SuppressWarnings("all") 345 public Date getUserAccessExpireTime() { 346 return this.userAccessExpireTime; 347 } 348 349 @java.lang.SuppressWarnings("all") 350 public void setUserAccessExpireTime(final Date userAccessExpireTime) { 351 this.userAccessExpireTime = userAccessExpireTime; 352 } 353 354 /** 355 * Verification status for this business. 356 */ 357 @java.lang.SuppressWarnings("all") 358 public String getVerificationStatus() { 359 return this.verificationStatus; 360 } 361 362 /** 363 * Verification status for this business. 364 */ 365 @java.lang.SuppressWarnings("all") 366 public void setVerificationStatus(final String verificationStatus) { 367 this.verificationStatus = verificationStatus; 368 } 369 370 /** 371 * The vertical industry that this business associates with, or belongs to. 372 */ 373 @java.lang.SuppressWarnings("all") 374 public String getVertical() { 375 return this.vertical; 376 } 377 378 /** 379 * The vertical industry that this business associates with, or belongs to. 380 */ 381 @java.lang.SuppressWarnings("all") 382 public void setVertical(final String vertical) { 383 this.vertical = vertical; 384 } 385 386 /** 387 * The ID for the vertical industry. 388 */ 389 @java.lang.SuppressWarnings("all") 390 public Integer getVerticalId() { 391 return this.verticalId; 392 } 393 394 /** 395 * The ID for the vertical industry. 396 */ 397 @java.lang.SuppressWarnings("all") 398 public void setVerticalId(final Integer verticalId) { 399 this.verticalId = verticalId; 400 } 401 402 /** 403 * This business owns these pages. 404 */ 405 @java.lang.SuppressWarnings("all") 406 public List<Page> getOwnedPages() { 407 return this.ownedPages; 408 } 409 410 /** 411 * This business owns these pages. 412 */ 413 @java.lang.SuppressWarnings("all") 414 public void setOwnedPages(final List<Page> ownedPages) { 415 this.ownedPages = ownedPages; 416 } 417}