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 com.restfb.Facebook;
026import com.restfb.types.AbstractFacebookType;
027
028/**
029 * Represents the <a href="https://developers.facebook.com/docs/marketing-api/reference/ad-creative-object-story-spec/">
030 * AdCreativeObjectStorySpec</a> Marketing API type.
031 */
032public class AdCreativeObjectStorySpec extends AbstractFacebookType {
033  /**
034   * The Instagram user account that the story will be posted to
035   */
036  @Facebook("instagram_actor_id")
037  private String instagramActorId;
038  /**
039   * The Instagram user account that the story will be posted to
040   */
041  @Facebook("instagram_user_id")
042  private String instagramUserId;
043  /**
044   * The spec for a link page post or carousel ad
045   */
046  @Facebook("link_data")
047  private AdCreativeLinkData linkData;
048  /**
049   * The spec for an offer page post.
050   */
051  @Facebook("offer_data")
052  private AdCreativeOfferData offerData;
053  /**
054   * ID of a Facebook page.
055   *
056   * An unpublished page post will be created on this page. User must have Admin or Editor role for this page.
057   */
058  @Facebook("page_id")
059  private String pageId;
060  /**
061   * The spec for a photo page post.
062   */
063  @Facebook("photo_data")
064  private AdCreativePhotoData photoData;
065  /**
066   * The spec for a template link page post as used in Dynamic Product Ads.
067   */
068  @Facebook("template_data")
069  private AdCreativeLinkData templateData;
070  /**
071   * The spec for a text page post.
072   */
073  @Facebook("text_data")
074  private AdCreativeTextData textData;
075  /**
076   * The spec for a video page post.
077   */
078  @Facebook("video_data")
079  private AdCreativeVideoData videoData;
080
081  /**
082   * @return The Instagram user account that the story will be posted to
083   */
084  @java.lang.SuppressWarnings("all")
085  @lombok.Generated
086  public String getInstagramActorId() {
087    return this.instagramActorId;
088  }
089
090  /**
091   * The Instagram user account that the story will be posted to
092   */
093  @java.lang.SuppressWarnings("all")
094  @lombok.Generated
095  public void setInstagramActorId(final String instagramActorId) {
096    this.instagramActorId = instagramActorId;
097  }
098
099  /**
100   * @return The Instagram user account that the story will be posted to
101   */
102  @java.lang.SuppressWarnings("all")
103  @lombok.Generated
104  public String getInstagramUserId() {
105    return this.instagramUserId;
106  }
107
108  /**
109   * The Instagram user account that the story will be posted to
110   */
111  @java.lang.SuppressWarnings("all")
112  @lombok.Generated
113  public void setInstagramUserId(final String instagramUserId) {
114    this.instagramUserId = instagramUserId;
115  }
116
117  /**
118   * @return The spec for a link page post or carousel ad
119   */
120  @java.lang.SuppressWarnings("all")
121  @lombok.Generated
122  public AdCreativeLinkData getLinkData() {
123    return this.linkData;
124  }
125
126  /**
127   * The spec for a link page post or carousel ad
128   */
129  @java.lang.SuppressWarnings("all")
130  @lombok.Generated
131  public void setLinkData(final AdCreativeLinkData linkData) {
132    this.linkData = linkData;
133  }
134
135  /**
136   * @return The spec for an offer page post.
137   */
138  @java.lang.SuppressWarnings("all")
139  @lombok.Generated
140  public AdCreativeOfferData getOfferData() {
141    return this.offerData;
142  }
143
144  /**
145   * The spec for an offer page post.
146   */
147  @java.lang.SuppressWarnings("all")
148  @lombok.Generated
149  public void setOfferData(final AdCreativeOfferData offerData) {
150    this.offerData = offerData;
151  }
152
153  /**
154   * @return ID of a Facebook page.
155   */
156  @java.lang.SuppressWarnings("all")
157  @lombok.Generated
158  public String getPageId() {
159    return this.pageId;
160  }
161
162  /**
163   * ID of a Facebook page.
164   *
165   * An unpublished page post will be created on this page. User must have Admin or Editor role for this page.
166   */
167  @java.lang.SuppressWarnings("all")
168  @lombok.Generated
169  public void setPageId(final String pageId) {
170    this.pageId = pageId;
171  }
172
173  /**
174   * @return The spec for a photo page post.
175   */
176  @java.lang.SuppressWarnings("all")
177  @lombok.Generated
178  public AdCreativePhotoData getPhotoData() {
179    return this.photoData;
180  }
181
182  /**
183   * The spec for a photo page post.
184   */
185  @java.lang.SuppressWarnings("all")
186  @lombok.Generated
187  public void setPhotoData(final AdCreativePhotoData photoData) {
188    this.photoData = photoData;
189  }
190
191  /**
192   * @return The spec for a template link page post as used in Dynamic Product Ads.
193   */
194  @java.lang.SuppressWarnings("all")
195  @lombok.Generated
196  public AdCreativeLinkData getTemplateData() {
197    return this.templateData;
198  }
199
200  /**
201   * The spec for a template link page post as used in Dynamic Product Ads.
202   */
203  @java.lang.SuppressWarnings("all")
204  @lombok.Generated
205  public void setTemplateData(final AdCreativeLinkData templateData) {
206    this.templateData = templateData;
207  }
208
209  /**
210   * @return The spec for a text page post.
211   */
212  @java.lang.SuppressWarnings("all")
213  @lombok.Generated
214  public AdCreativeTextData getTextData() {
215    return this.textData;
216  }
217
218  /**
219   * The spec for a text page post.
220   */
221  @java.lang.SuppressWarnings("all")
222  @lombok.Generated
223  public void setTextData(final AdCreativeTextData textData) {
224    this.textData = textData;
225  }
226
227  /**
228   * @return The spec for a video page post.
229   */
230  @java.lang.SuppressWarnings("all")
231  @lombok.Generated
232  public AdCreativeVideoData getVideoData() {
233    return this.videoData;
234  }
235
236  /**
237   * The spec for a video page post.
238   */
239  @java.lang.SuppressWarnings("all")
240  @lombok.Generated
241  public void setVideoData(final AdCreativeVideoData videoData) {
242    this.videoData = videoData;
243  }
244}