001// Generated by delombok at Thu Aug 13 13:56:43 UTC 2026
002/*
003 * Copyright (c) 2010-2026 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  @lombok.Generated
131  public Date getCreationTime() {
132    return this.creationTime;
133  }
134
135  /**
136   * The creation time of this business.
137   */
138  @java.lang.SuppressWarnings("all")
139  @lombok.Generated
140  public void setCreationTime(final Date creationTime) {
141    this.creationTime = creationTime;
142  }
143
144  /**
145   * The creation time of this business.
146   */
147  @java.lang.SuppressWarnings("all")
148  @lombok.Generated
149  public Date getCreatedTime() {
150    return this.createdTime;
151  }
152
153  /**
154   * The creation time of this business.
155   */
156  @java.lang.SuppressWarnings("all")
157  @lombok.Generated
158  public void setCreatedTime(final Date createdTime) {
159    this.createdTime = createdTime;
160  }
161
162  /**
163   * The creator of this business.
164   */
165  @java.lang.SuppressWarnings("all")
166  @lombok.Generated
167  public NamedAdsObject getCreatedBy() {
168    return this.createdBy;
169  }
170
171  /**
172   * The creator of this business.
173   */
174  @java.lang.SuppressWarnings("all")
175  @lombok.Generated
176  public void setCreatedBy(final NamedAdsObject createdBy) {
177    this.createdBy = createdBy;
178  }
179
180  /**
181   * Specifies whether offline analytics for business is blocked.
182   */
183  @java.lang.SuppressWarnings("all")
184  @lombok.Generated
185  public Boolean getBlockOfflineAnalytics() {
186    return this.blockOfflineAnalytics;
187  }
188
189  /**
190   * Specifies whether offline analytics for business is blocked.
191   */
192  @java.lang.SuppressWarnings("all")
193  @lombok.Generated
194  public void setBlockOfflineAnalytics(final Boolean blockOfflineAnalytics) {
195    this.blockOfflineAnalytics = blockOfflineAnalytics;
196  }
197
198  /**
199   * The update time of the extended credits for this business.
200   */
201  @java.lang.SuppressWarnings("all")
202  @lombok.Generated
203  public Date getExtendedUpdatedTime() {
204    return this.extendedUpdatedTime;
205  }
206
207  /**
208   * The update time of the extended credits for this business.
209   */
210  @java.lang.SuppressWarnings("all")
211  @lombok.Generated
212  public void setExtendedUpdatedTime(final Date extendedUpdatedTime) {
213    this.extendedUpdatedTime = extendedUpdatedTime;
214  }
215
216  /**
217   * If true, indicates the business is hidden.
218   */
219  @java.lang.SuppressWarnings("all")
220  @lombok.Generated
221  public Boolean getIsHidden() {
222    return this.isHidden;
223  }
224
225  /**
226   * If true, indicates the business is hidden.
227   */
228  @java.lang.SuppressWarnings("all")
229  @lombok.Generated
230  public void setIsHidden(final Boolean isHidden) {
231    this.isHidden = isHidden;
232  }
233
234  /**
235   * URI for business profile page.
236   */
237  @java.lang.SuppressWarnings("all")
238  @lombok.Generated
239  public String getLink() {
240    return this.link;
241  }
242
243  /**
244   * URI for business profile page.
245   */
246  @java.lang.SuppressWarnings("all")
247  @lombok.Generated
248  public void setLink(final String link) {
249    this.link = link;
250  }
251
252  /**
253   * The ID for the payment account of this business.
254   */
255  @java.lang.SuppressWarnings("all")
256  @lombok.Generated
257  public String getPaymentAccountId() {
258    return this.paymentAccountId;
259  }
260
261  /**
262   * The ID for the payment account of this business.
263   */
264  @java.lang.SuppressWarnings("all")
265  @lombok.Generated
266  public void setPaymentAccountId(final String paymentAccountId) {
267    this.paymentAccountId = paymentAccountId;
268  }
269
270  /**
271   * The primary Facebook Page for this business.
272   */
273  @java.lang.SuppressWarnings("all")
274  @lombok.Generated
275  public Page getPrimaryPage() {
276    return this.primaryPage;
277  }
278
279  /**
280   * The primary Facebook Page for this business.
281   */
282  @java.lang.SuppressWarnings("all")
283  @lombok.Generated
284  public void setPrimaryPage(final Page primaryPage) {
285    this.primaryPage = primaryPage;
286  }
287
288  /**
289   * The profile picture URI of the business.
290   */
291  @java.lang.SuppressWarnings("all")
292  @lombok.Generated
293  public String getProfilePictureUri() {
294    return this.profilePictureUri;
295  }
296
297  /**
298   * The profile picture URI of the business.
299   */
300  @java.lang.SuppressWarnings("all")
301  @lombok.Generated
302  public void setProfilePictureUri(final String profilePictureUri) {
303    this.profilePictureUri = profilePictureUri;
304  }
305
306  /**
307   * This business's timezone.
308   */
309  @java.lang.SuppressWarnings("all")
310  @lombok.Generated
311  public Integer getTimezoneId() {
312    return this.timezoneId;
313  }
314
315  /**
316   * This business's timezone.
317   */
318  @java.lang.SuppressWarnings("all")
319  @lombok.Generated
320  public void setTimezoneId(final Integer timezoneId) {
321    this.timezoneId = timezoneId;
322  }
323
324  @java.lang.SuppressWarnings("all")
325  @lombok.Generated
326  public String getTwoFactorType() {
327    return this.twoFactorType;
328  }
329
330  @java.lang.SuppressWarnings("all")
331  @lombok.Generated
332  public void setTwoFactorType(final String twoFactorType) {
333    this.twoFactorType = twoFactorType;
334  }
335
336  /**
337   * The time when this business was last updated.
338   */
339  @java.lang.SuppressWarnings("all")
340  @lombok.Generated
341  public Date getUpdateTime() {
342    return this.updateTime;
343  }
344
345  /**
346   * The time when this business was last updated.
347   */
348  @java.lang.SuppressWarnings("all")
349  @lombok.Generated
350  public void setUpdateTime(final Date updateTime) {
351    this.updateTime = updateTime;
352  }
353
354  /**
355   * The person's name who last updated this business.
356   */
357  @java.lang.SuppressWarnings("all")
358  @lombok.Generated
359  public NamedAdsObject getUpdatedBy() {
360    return this.updatedBy;
361  }
362
363  /**
364   * The person's name who last updated this business.
365   */
366  @java.lang.SuppressWarnings("all")
367  @lombok.Generated
368  public void setUpdatedBy(final NamedAdsObject updatedBy) {
369    this.updatedBy = updatedBy;
370  }
371
372  @java.lang.SuppressWarnings("all")
373  @lombok.Generated
374  public Date getUserAccessExpireTime() {
375    return this.userAccessExpireTime;
376  }
377
378  @java.lang.SuppressWarnings("all")
379  @lombok.Generated
380  public void setUserAccessExpireTime(final Date userAccessExpireTime) {
381    this.userAccessExpireTime = userAccessExpireTime;
382  }
383
384  /**
385   * Verification status for this business.
386   */
387  @java.lang.SuppressWarnings("all")
388  @lombok.Generated
389  public String getVerificationStatus() {
390    return this.verificationStatus;
391  }
392
393  /**
394   * Verification status for this business.
395   */
396  @java.lang.SuppressWarnings("all")
397  @lombok.Generated
398  public void setVerificationStatus(final String verificationStatus) {
399    this.verificationStatus = verificationStatus;
400  }
401
402  /**
403   * The vertical industry that this business associates with, or belongs to.
404   */
405  @java.lang.SuppressWarnings("all")
406  @lombok.Generated
407  public String getVertical() {
408    return this.vertical;
409  }
410
411  /**
412   * The vertical industry that this business associates with, or belongs to.
413   */
414  @java.lang.SuppressWarnings("all")
415  @lombok.Generated
416  public void setVertical(final String vertical) {
417    this.vertical = vertical;
418  }
419
420  /**
421   * The ID for the vertical industry.
422   */
423  @java.lang.SuppressWarnings("all")
424  @lombok.Generated
425  public Integer getVerticalId() {
426    return this.verticalId;
427  }
428
429  /**
430   * The ID for the vertical industry.
431   */
432  @java.lang.SuppressWarnings("all")
433  @lombok.Generated
434  public void setVerticalId(final Integer verticalId) {
435    this.verticalId = verticalId;
436  }
437
438  /**
439   * This business owns these pages.
440   */
441  @java.lang.SuppressWarnings("all")
442  @lombok.Generated
443  public List<Page> getOwnedPages() {
444    return this.ownedPages;
445  }
446
447  /**
448   * This business owns these pages.
449   */
450  @java.lang.SuppressWarnings("all")
451  @lombok.Generated
452  public void setOwnedPages(final List<Page> ownedPages) {
453    this.ownedPages = ownedPages;
454  }
455}