001// Generated by delombok at Fri Oct 04 16:05:59 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;
024
025import java.util.Date;
026import com.restfb.Facebook;
027import com.restfb.types.features.HasCreatedTime;
028import com.restfb.types.features.HasFrom;
029import com.restfb.types.features.HasMessage;
030
031/**
032 * Represents the <a href="http://developers.facebook.com/docs/reference/api/link">Link Graph API type</a>.
033 * 
034 * @author <a href="http://restfb.com">Mark Allen</a>
035 * @author Patrick Alberts
036 * @since 1.5
037 */
038public class Link extends NamedFacebookType implements HasCreatedTime, HasFrom, HasMessage {
039  /**
040   * An object containing the name and ID of the user who posted the link.
041   * 
042   */
043  @Facebook
044  private NamedFacebookType from;
045  /**
046   * The link message content.
047   * 
048   */
049  @Facebook
050  private String message;
051  /**
052   * The picture associated with the link.
053   * 
054   */
055  @Facebook
056  private String picture;
057  /**
058   * The actual URL that was shared.
059   * 
060   */
061  @Facebook
062  private String link;
063  /**
064   * The link description.
065   * 
066   */
067  @Facebook
068  private String description;
069  /**
070   * The link icon.
071   * 
072   */
073  @Facebook
074  private String icon;
075  /**
076   * The time at which this object was created, if available.
077   * 
078   * @since 1.6.3
079   */
080  @Facebook("created_time")
081  private Date createdTime;
082  private static final long serialVersionUID = 1L;
083
084  /**
085   * An object containing the name and ID of the user who posted the link.
086   * 
087   * @return An object containing the name and ID of the user who posted the link.
088   */
089  @Override
090  @java.lang.SuppressWarnings("all")
091  public NamedFacebookType getFrom() {
092    return this.from;
093  }
094
095  /**
096   * An object containing the name and ID of the user who posted the link.
097   * 
098   */
099  @java.lang.SuppressWarnings("all")
100  public void setFrom(final NamedFacebookType from) {
101    this.from = from;
102  }
103
104  /**
105   * The link message content.
106   * 
107   * @return The link message content.
108   */
109  @Override
110  @java.lang.SuppressWarnings("all")
111  public String getMessage() {
112    return this.message;
113  }
114
115  /**
116   * The link message content.
117   * 
118   */
119  @java.lang.SuppressWarnings("all")
120  public void setMessage(final String message) {
121    this.message = message;
122  }
123
124  /**
125   * The picture associated with the link.
126   * 
127   * @return The picture associated with the link.
128   */
129  @java.lang.SuppressWarnings("all")
130  public String getPicture() {
131    return this.picture;
132  }
133
134  /**
135   * The picture associated with the link.
136   * 
137   */
138  @java.lang.SuppressWarnings("all")
139  public void setPicture(final String picture) {
140    this.picture = picture;
141  }
142
143  /**
144   * The actual URL that was shared.
145   * 
146   * @return The actual URL that was shared.
147   */
148  @java.lang.SuppressWarnings("all")
149  public String getLink() {
150    return this.link;
151  }
152
153  /**
154   * The actual URL that was shared.
155   * 
156   */
157  @java.lang.SuppressWarnings("all")
158  public void setLink(final String link) {
159    this.link = link;
160  }
161
162  /**
163   * The link description.
164   * 
165   * @return The link description.
166   */
167  @java.lang.SuppressWarnings("all")
168  public String getDescription() {
169    return this.description;
170  }
171
172  /**
173   * The link description.
174   * 
175   */
176  @java.lang.SuppressWarnings("all")
177  public void setDescription(final String description) {
178    this.description = description;
179  }
180
181  /**
182   * The link icon.
183   * 
184   * @return The link icon.
185   */
186  @java.lang.SuppressWarnings("all")
187  public String getIcon() {
188    return this.icon;
189  }
190
191  /**
192   * The link icon.
193   * 
194   */
195  @java.lang.SuppressWarnings("all")
196  public void setIcon(final String icon) {
197    this.icon = icon;
198  }
199
200  /**
201   * The time at which this object was created, if available.
202   * 
203   * @return The time at which this object was created.
204   * @since 1.6.3
205   */
206  @Override
207  @java.lang.SuppressWarnings("all")
208  public Date getCreatedTime() {
209    return this.createdTime;
210  }
211
212  /**
213   * The time at which this object was created, if available.
214   * 
215   * @since 1.6.3
216   */
217  @java.lang.SuppressWarnings("all")
218  public void setCreatedTime(final Date createdTime) {
219    this.createdTime = createdTime;
220  }
221}