001// Generated by delombok at Fri Oct 09 16:27:16 CEST 2020
002/*
003 * Copyright (c) 2010-2020 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  @Facebook
043  private NamedFacebookType from;
044  /**
045   * The link message content.
046   */
047  @Facebook
048  private String message;
049  /**
050   * The picture associated with the link.
051   */
052  @Facebook
053  private String picture;
054  /**
055   * The actual URL that was shared.
056   */
057  @Facebook
058  private String link;
059  /**
060   * The link description.
061   */
062  @Facebook
063  private String description;
064  /**
065   * The link icon.
066   */
067  @Facebook
068  private String icon;
069  /**
070   * The time at which this object was created, if available.
071   *
072   * @since 1.6.3
073   */
074  @Facebook("created_time")
075  private Date createdTime;
076  private static final long serialVersionUID = 1L;
077
078  /**
079   * An object containing the name and ID of the user who posted the link.
080   * 
081   * @return An object containing the name and ID of the user who posted the link.
082   */
083  @Override
084  @java.lang.SuppressWarnings("all")
085  public NamedFacebookType getFrom() {
086    return this.from;
087  }
088
089  /**
090   * An object containing the name and ID of the user who posted the link.
091   */
092  @java.lang.SuppressWarnings("all")
093  public void setFrom(final NamedFacebookType from) {
094    this.from = from;
095  }
096
097  /**
098   * The link message content.
099   * 
100   * @return The link message content.
101   */
102  @Override
103  @java.lang.SuppressWarnings("all")
104  public String getMessage() {
105    return this.message;
106  }
107
108  /**
109   * The link message content.
110   */
111  @java.lang.SuppressWarnings("all")
112  public void setMessage(final String message) {
113    this.message = message;
114  }
115
116  /**
117   * The picture associated with the link.
118   * 
119   * @return The picture associated with the link.
120   */
121  @java.lang.SuppressWarnings("all")
122  public String getPicture() {
123    return this.picture;
124  }
125
126  /**
127   * The picture associated with the link.
128   */
129  @java.lang.SuppressWarnings("all")
130  public void setPicture(final String picture) {
131    this.picture = picture;
132  }
133
134  /**
135   * The actual URL that was shared.
136   * 
137   * @return The actual URL that was shared.
138   */
139  @java.lang.SuppressWarnings("all")
140  public String getLink() {
141    return this.link;
142  }
143
144  /**
145   * The actual URL that was shared.
146   */
147  @java.lang.SuppressWarnings("all")
148  public void setLink(final String link) {
149    this.link = link;
150  }
151
152  /**
153   * The link description.
154   * 
155   * @return The link description.
156   */
157  @java.lang.SuppressWarnings("all")
158  public String getDescription() {
159    return this.description;
160  }
161
162  /**
163   * The link description.
164   */
165  @java.lang.SuppressWarnings("all")
166  public void setDescription(final String description) {
167    this.description = description;
168  }
169
170  /**
171   * The link icon.
172   * 
173   * @return The link icon.
174   */
175  @java.lang.SuppressWarnings("all")
176  public String getIcon() {
177    return this.icon;
178  }
179
180  /**
181   * The link icon.
182   */
183  @java.lang.SuppressWarnings("all")
184  public void setIcon(final String icon) {
185    this.icon = icon;
186  }
187
188  /**
189   * The time at which this object was created, if available.
190   * 
191   * @return The time at which this object was created.
192   * @since 1.6.3
193   */
194  @Override
195  @java.lang.SuppressWarnings("all")
196  public Date getCreatedTime() {
197    return this.createdTime;
198  }
199
200  /**
201   * The time at which this object was created, if available.
202   *
203   * @since 1.6.3
204   */
205  @java.lang.SuppressWarnings("all")
206  public void setCreatedTime(final Date createdTime) {
207    this.createdTime = createdTime;
208  }
209}