001// Generated by delombok at Fri Aug 16 13:39:53 UTC 2024
002/*
003 * Copyright (c) 2010-2024 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.webhook.instagram;
024
025import com.restfb.Facebook;
026import com.restfb.types.instagram.IgFrom;
027import com.restfb.types.webhook.ChangeValue;
028
029public class InstagramCommentsValue extends ChangeValue {
030  /**
031   * The id of the object
032   */
033  @Facebook
034  private String id;
035  /**
036   * Instagram-scoped ID and username of the Instagram user who created the comment
037   */
038  @Facebook
039  private IgFrom from;
040  /**
041   * ID and product type of the IG Media the comment was created on
042   */
043  @Facebook
044  private IgCommentMedia media;
045  /**
046   * Comment text
047   */
048  @Facebook
049  private String text;
050  /**
051   * ID of parent IG Comment if this comment was created on another IG Comment (i.g. a reply to another comment)
052   */
053  @Facebook("parent_id")
054  private String parentId;
055
056
057  public static class IgCommentMedia {
058    /**
059     * ID of the IG Media the comment was created on
060     */
061    @Facebook
062    private String id;
063    /**
064     * Product type of the IG Media the comment was created on
065     */
066    @Facebook("media_product_type")
067    private String mediaProductType;
068    /**
069     * ID of the IG Ad the comment was created on
070     */
071    @Facebook("ad_id")
072    private String adId;
073    /**
074     * Title of the IG Ad the comment was created on
075     */
076    @Facebook("ad_title")
077    private String adTitle;
078    /**
079     * Original media id of the IG Ad the comment was created on
080     */
081    @Facebook("original_media_id")
082    private String originalMediaId;
083
084    @java.lang.SuppressWarnings("all")
085    public String getId() {
086      return this.id;
087    }
088
089    @java.lang.SuppressWarnings("all")
090    public String getMediaProductType() {
091      return this.mediaProductType;
092    }
093
094    @java.lang.SuppressWarnings("all")
095    public String getAdId() {
096      return this.adId;
097    }
098
099    @java.lang.SuppressWarnings("all")
100    public String getAdTitle() {
101      return this.adTitle;
102    }
103
104    @java.lang.SuppressWarnings("all")
105    public String getOriginalMediaId() {
106      return this.originalMediaId;
107    }
108
109    @java.lang.SuppressWarnings("all")
110    public void setId(final String id) {
111      this.id = id;
112    }
113
114    @java.lang.SuppressWarnings("all")
115    public void setMediaProductType(final String mediaProductType) {
116      this.mediaProductType = mediaProductType;
117    }
118
119    @java.lang.SuppressWarnings("all")
120    public void setAdId(final String adId) {
121      this.adId = adId;
122    }
123
124    @java.lang.SuppressWarnings("all")
125    public void setAdTitle(final String adTitle) {
126      this.adTitle = adTitle;
127    }
128
129    @java.lang.SuppressWarnings("all")
130    public void setOriginalMediaId(final String originalMediaId) {
131      this.originalMediaId = originalMediaId;
132    }
133  }
134
135  /**
136   * The id of the object
137   */
138  @java.lang.SuppressWarnings("all")
139  public String getId() {
140    return this.id;
141  }
142
143  /**
144   * The id of the object
145   */
146  @java.lang.SuppressWarnings("all")
147  public void setId(final String id) {
148    this.id = id;
149  }
150
151  /**
152   * Instagram-scoped ID and username of the Instagram user who created the comment
153   */
154  @java.lang.SuppressWarnings("all")
155  public IgFrom getFrom() {
156    return this.from;
157  }
158
159  /**
160   * Instagram-scoped ID and username of the Instagram user who created the comment
161   */
162  @java.lang.SuppressWarnings("all")
163  public void setFrom(final IgFrom from) {
164    this.from = from;
165  }
166
167  /**
168   * ID and product type of the IG Media the comment was created on
169   */
170  @java.lang.SuppressWarnings("all")
171  public IgCommentMedia getMedia() {
172    return this.media;
173  }
174
175  /**
176   * ID and product type of the IG Media the comment was created on
177   */
178  @java.lang.SuppressWarnings("all")
179  public void setMedia(final IgCommentMedia media) {
180    this.media = media;
181  }
182
183  /**
184   * Comment text
185   */
186  @java.lang.SuppressWarnings("all")
187  public String getText() {
188    return this.text;
189  }
190
191  /**
192   * Comment text
193   */
194  @java.lang.SuppressWarnings("all")
195  public void setText(final String text) {
196    this.text = text;
197  }
198
199  /**
200   * ID of parent IG Comment if this comment was created on another IG Comment (i.g. a reply to another comment)
201   */
202  @java.lang.SuppressWarnings("all")
203  public String getParentId() {
204    return this.parentId;
205  }
206
207  /**
208   * ID of parent IG Comment if this comment was created on another IG Comment (i.g. a reply to another comment)
209   */
210  @java.lang.SuppressWarnings("all")
211  public void setParentId(final String parentId) {
212    this.parentId = parentId;
213  }
214}