001// Generated by delombok at Sun Apr 14 14:59:49 CEST 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.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 @java.lang.SuppressWarnings("all") 085 public String getIgId() { 086 return this.igId; 087 } 088 089 @java.lang.SuppressWarnings("all") 090 public void setIgId(final String igId) { 091 this.igId = igId; 092 } 093 094 /** 095 * Media type. Can be CAROUSEL_ALBUM, IMAGE, or VIDEO. 096 */ 097 @java.lang.SuppressWarnings("all") 098 public String getMediaType() { 099 return this.mediaType; 100 } 101 102 /** 103 * Media type. Can be CAROUSEL_ALBUM, IMAGE, or VIDEO. 104 */ 105 @java.lang.SuppressWarnings("all") 106 public void setMediaType(final String mediaType) { 107 this.mediaType = mediaType; 108 } 109 110 /** 111 * Media URL. Will be omitted from responses if the media contains copyrighted material, or has been flagged for a 112 * copyright violation. 113 */ 114 @java.lang.SuppressWarnings("all") 115 public String getMediaUrl() { 116 return this.mediaUrl; 117 } 118 119 /** 120 * Media URL. Will be omitted from responses if the media contains copyrighted material, or has been flagged for a 121 * copyright violation. 122 */ 123 @java.lang.SuppressWarnings("all") 124 public void setMediaUrl(final String mediaUrl) { 125 this.mediaUrl = mediaUrl; 126 } 127 128 /** 129 * Surface where the media is published. Can be AD, FEED, or STORY. 130 */ 131 @java.lang.SuppressWarnings("all") 132 public String getMediaProductType() { 133 return this.mediaProductType; 134 } 135 136 /** 137 * Surface where the media is published. Can be AD, FEED, or STORY. 138 */ 139 @java.lang.SuppressWarnings("all") 140 public void setMediaProductType(final String mediaProductType) { 141 this.mediaProductType = mediaProductType; 142 } 143 144 /** 145 * ID of Instagram user who created the media. Only returned if the app user making the query also created the media, 146 * otherwise <code>username</code> field will be returned instead. 147 * 148 * @deprecated with Graph API 12 or December 13, 2021 for all versions 149 */ 150 @java.lang.Deprecated 151 @java.lang.SuppressWarnings("all") 152 public IgUser getOwner() { 153 return this.owner; 154 } 155 156 /** 157 * ID of Instagram user who created the media. Only returned if the app user making the query also created the media, 158 * otherwise <code>username</code> field will be returned instead. 159 * 160 * @deprecated with Graph API 12 or December 13, 2021 for all versions 161 */ 162 @java.lang.Deprecated 163 @java.lang.SuppressWarnings("all") 164 public void setOwner(final IgUser owner) { 165 this.owner = owner; 166 } 167 168 /** 169 * Permanent URL to the media. 170 */ 171 @java.lang.SuppressWarnings("all") 172 public String getPermalink() { 173 return this.permalink; 174 } 175 176 /** 177 * Permanent URL to the media. 178 */ 179 @java.lang.SuppressWarnings("all") 180 public void setPermalink(final String permalink) { 181 this.permalink = permalink; 182 } 183 184 /** 185 * Shortcode to the media. 186 */ 187 @java.lang.SuppressWarnings("all") 188 public String getShortcode() { 189 return this.shortcode; 190 } 191 192 /** 193 * Shortcode to the media. 194 */ 195 @java.lang.SuppressWarnings("all") 196 public void setShortcode(final String shortcode) { 197 this.shortcode = shortcode; 198 } 199 200 /** 201 * Media thumbnail URL. Only available on VIDEO media. 202 */ 203 @java.lang.SuppressWarnings("all") 204 public String getThumbnailUrl() { 205 return this.thumbnailUrl; 206 } 207 208 /** 209 * Media thumbnail URL. Only available on VIDEO media. 210 */ 211 @java.lang.SuppressWarnings("all") 212 public void setThumbnailUrl(final String thumbnailUrl) { 213 this.thumbnailUrl = thumbnailUrl; 214 } 215 216 /** 217 * ISO 8601 formatted creation date in UTC (default is UTC ±00:00) 218 */ 219 @java.lang.SuppressWarnings("all") 220 public Date getTimestamp() { 221 return this.timestamp; 222 } 223 224 /** 225 * ISO 8601 formatted creation date in UTC (default is UTC ±00:00) 226 */ 227 @java.lang.SuppressWarnings("all") 228 public void setTimestamp(final Date timestamp) { 229 this.timestamp = timestamp; 230 } 231 232 /** 233 * Username of user who created the media. 234 */ 235 @java.lang.SuppressWarnings("all") 236 public String getUsername() { 237 return this.username; 238 } 239 240 /** 241 * Username of user who created the media. 242 */ 243 @java.lang.SuppressWarnings("all") 244 public void setUsername(final String username) { 245 this.username = username; 246 } 247}