001// Generated by delombok at Sat May 10 20:59:56 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.instagram;
024
025import java.util.Date;
026import com.restfb.Facebook;
027import com.restfb.types.FacebookType;
028
029public class IgMediaChild extends FacebookType {
030  private static final long serialVersionUID = 1L;
031  @Facebook("ig_id")
032  private String igId;
033  /**
034   * Media type. Can be CAROUSEL_ALBUM, IMAGE, or VIDEO.
035   */
036  @Facebook("media_type")
037  private String mediaType;
038  /**
039   * Media URL. Will be omitted from responses if the media contains copyrighted material, or has been flagged for a
040   * copyright violation.
041   */
042  @Facebook("media_url")
043  private String mediaUrl;
044  /**
045   * Surface where the media is published. Can be AD, FEED, or STORY.
046   */
047  @Facebook("media_product_type")
048  private String mediaProductType;
049  /**
050   * ID of Instagram user who created the media. Only returned if the app user making the query also created the media,
051   * otherwise <code>username</code> field will be returned instead.
052   *
053   * @deprecated with Graph API 12 or December 13, 2021 for all versions
054   */
055  @Facebook
056  @Deprecated
057  private IgUser owner;
058  /**
059   * Permanent URL to the media.
060   */
061  @Facebook
062  private String permalink;
063  /**
064   * Shortcode to the media.
065   */
066  @Facebook
067  private String shortcode;
068  /**
069   * Media thumbnail URL. Only available on VIDEO media.
070   */
071  @Facebook("thumbnail_url")
072  private String thumbnailUrl;
073  /**
074   * ISO 8601 formatted creation date in UTC (default is UTC ±00:00)
075   */
076  @Facebook
077  private Date timestamp;
078  /**
079   * Username of user who created the media.
080   */
081  @Facebook
082  private String username;
083  /**
084   * describing text for the media. Also known as accessibility label.
085   */
086  @Facebook("alt_text")
087  private String altText;
088
089  @java.lang.SuppressWarnings("all")
090  public String getIgId() {
091    return this.igId;
092  }
093
094  @java.lang.SuppressWarnings("all")
095  public void setIgId(final String igId) {
096    this.igId = igId;
097  }
098
099  /**
100   * Media type. Can be CAROUSEL_ALBUM, IMAGE, or VIDEO.
101   */
102  @java.lang.SuppressWarnings("all")
103  public String getMediaType() {
104    return this.mediaType;
105  }
106
107  /**
108   * Media type. Can be CAROUSEL_ALBUM, IMAGE, or VIDEO.
109   */
110  @java.lang.SuppressWarnings("all")
111  public void setMediaType(final String mediaType) {
112    this.mediaType = mediaType;
113  }
114
115  /**
116   * Media URL. Will be omitted from responses if the media contains copyrighted material, or has been flagged for a
117   * copyright violation.
118   */
119  @java.lang.SuppressWarnings("all")
120  public String getMediaUrl() {
121    return this.mediaUrl;
122  }
123
124  /**
125   * Media URL. Will be omitted from responses if the media contains copyrighted material, or has been flagged for a
126   * copyright violation.
127   */
128  @java.lang.SuppressWarnings("all")
129  public void setMediaUrl(final String mediaUrl) {
130    this.mediaUrl = mediaUrl;
131  }
132
133  /**
134   * Surface where the media is published. Can be AD, FEED, or STORY.
135   */
136  @java.lang.SuppressWarnings("all")
137  public String getMediaProductType() {
138    return this.mediaProductType;
139  }
140
141  /**
142   * Surface where the media is published. Can be AD, FEED, or STORY.
143   */
144  @java.lang.SuppressWarnings("all")
145  public void setMediaProductType(final String mediaProductType) {
146    this.mediaProductType = mediaProductType;
147  }
148
149  /**
150   * ID of Instagram user who created the media. Only returned if the app user making the query also created the media,
151   * otherwise <code>username</code> field will be returned instead.
152   *
153   * @deprecated with Graph API 12 or December 13, 2021 for all versions
154   */
155  @java.lang.Deprecated
156  @java.lang.SuppressWarnings("all")
157  public IgUser getOwner() {
158    return this.owner;
159  }
160
161  /**
162   * ID of Instagram user who created the media. Only returned if the app user making the query also created the media,
163   * otherwise <code>username</code> field will be returned instead.
164   *
165   * @deprecated with Graph API 12 or December 13, 2021 for all versions
166   */
167  @java.lang.Deprecated
168  @java.lang.SuppressWarnings("all")
169  public void setOwner(final IgUser owner) {
170    this.owner = owner;
171  }
172
173  /**
174   * Permanent URL to the media.
175   */
176  @java.lang.SuppressWarnings("all")
177  public String getPermalink() {
178    return this.permalink;
179  }
180
181  /**
182   * Permanent URL to the media.
183   */
184  @java.lang.SuppressWarnings("all")
185  public void setPermalink(final String permalink) {
186    this.permalink = permalink;
187  }
188
189  /**
190   * Shortcode to the media.
191   */
192  @java.lang.SuppressWarnings("all")
193  public String getShortcode() {
194    return this.shortcode;
195  }
196
197  /**
198   * Shortcode to the media.
199   */
200  @java.lang.SuppressWarnings("all")
201  public void setShortcode(final String shortcode) {
202    this.shortcode = shortcode;
203  }
204
205  /**
206   * Media thumbnail URL. Only available on VIDEO media.
207   */
208  @java.lang.SuppressWarnings("all")
209  public String getThumbnailUrl() {
210    return this.thumbnailUrl;
211  }
212
213  /**
214   * Media thumbnail URL. Only available on VIDEO media.
215   */
216  @java.lang.SuppressWarnings("all")
217  public void setThumbnailUrl(final String thumbnailUrl) {
218    this.thumbnailUrl = thumbnailUrl;
219  }
220
221  /**
222   * ISO 8601 formatted creation date in UTC (default is UTC ±00:00)
223   */
224  @java.lang.SuppressWarnings("all")
225  public Date getTimestamp() {
226    return this.timestamp;
227  }
228
229  /**
230   * ISO 8601 formatted creation date in UTC (default is UTC ±00:00)
231   */
232  @java.lang.SuppressWarnings("all")
233  public void setTimestamp(final Date timestamp) {
234    this.timestamp = timestamp;
235  }
236
237  /**
238   * Username of user who created the media.
239   */
240  @java.lang.SuppressWarnings("all")
241  public String getUsername() {
242    return this.username;
243  }
244
245  /**
246   * Username of user who created the media.
247   */
248  @java.lang.SuppressWarnings("all")
249  public void setUsername(final String username) {
250    this.username = username;
251  }
252
253  /**
254   * describing text for the media. Also known as accessibility label.
255   */
256  @java.lang.SuppressWarnings("all")
257  public String getAltText() {
258    return this.altText;
259  }
260
261  /**
262   * describing text for the media. Also known as accessibility label.
263   */
264  @java.lang.SuppressWarnings("all")
265  public void setAltText(final String altText) {
266    this.altText = altText;
267  }
268}