001// Generated by delombok at Wed Jan 31 21:27:42 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 @java.lang.SuppressWarnings("all") 080 public String getId() { 081 return this.id; 082 } 083 084 @java.lang.SuppressWarnings("all") 085 public void setId(final String id) { 086 this.id = 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 void setMediaProductType(final String mediaProductType) { 096 this.mediaProductType = mediaProductType; 097 } 098 099 @java.lang.SuppressWarnings("all") 100 public String getAdId() { 101 return this.adId; 102 } 103 104 @java.lang.SuppressWarnings("all") 105 public void setAdId(final String adId) { 106 this.adId = adId; 107 } 108 109 @java.lang.SuppressWarnings("all") 110 public String getAdTitle() { 111 return this.adTitle; 112 } 113 114 @java.lang.SuppressWarnings("all") 115 public void setAdTitle(final String adTitle) { 116 this.adTitle = adTitle; 117 } 118 } 119 120 /** 121 * The id of the object 122 */ 123 @java.lang.SuppressWarnings("all") 124 public String getId() { 125 return this.id; 126 } 127 128 /** 129 * The id of the object 130 */ 131 @java.lang.SuppressWarnings("all") 132 public void setId(final String id) { 133 this.id = id; 134 } 135 136 /** 137 * Instagram-scoped ID and username of the Instagram user who created the comment 138 */ 139 @java.lang.SuppressWarnings("all") 140 public IgFrom getFrom() { 141 return this.from; 142 } 143 144 /** 145 * Instagram-scoped ID and username of the Instagram user who created the comment 146 */ 147 @java.lang.SuppressWarnings("all") 148 public void setFrom(final IgFrom from) { 149 this.from = from; 150 } 151 152 /** 153 * ID and product type of the IG Media the comment was created on 154 */ 155 @java.lang.SuppressWarnings("all") 156 public IgCommentMedia getMedia() { 157 return this.media; 158 } 159 160 /** 161 * ID and product type of the IG Media the comment was created on 162 */ 163 @java.lang.SuppressWarnings("all") 164 public void setMedia(final IgCommentMedia media) { 165 this.media = media; 166 } 167 168 /** 169 * Comment text 170 */ 171 @java.lang.SuppressWarnings("all") 172 public String getText() { 173 return this.text; 174 } 175 176 /** 177 * Comment text 178 */ 179 @java.lang.SuppressWarnings("all") 180 public void setText(final String text) { 181 this.text = text; 182 } 183 184 /** 185 * ID of parent IG Comment if this comment was created on another IG Comment (i.g. a reply to another comment) 186 */ 187 @java.lang.SuppressWarnings("all") 188 public String getParentId() { 189 return this.parentId; 190 } 191 192 /** 193 * ID of parent IG Comment if this comment was created on another IG Comment (i.g. a reply to another comment) 194 */ 195 @java.lang.SuppressWarnings("all") 196 public void setParentId(final String parentId) { 197 this.parentId = parentId; 198 } 199}