001// Generated by delombok at Thu Aug 13 13:56:43 UTC 2026
002/*
003 * Copyright (c) 2010-2026 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  @lombok.Generated
086  public NamedFacebookType getFrom() {
087    return this.from;
088  }
089
090  /**
091   * An object containing the name and ID of the user who posted the link.
092   */
093  @java.lang.SuppressWarnings("all")
094  @lombok.Generated
095  public void setFrom(final NamedFacebookType from) {
096    this.from = from;
097  }
098
099  /**
100   * The link message content.
101   *
102   * @return The link message content.
103   */
104  @Override
105  @java.lang.SuppressWarnings("all")
106  @lombok.Generated
107  public String getMessage() {
108    return this.message;
109  }
110
111  /**
112   * The link message content.
113   */
114  @java.lang.SuppressWarnings("all")
115  @lombok.Generated
116  public void setMessage(final String message) {
117    this.message = message;
118  }
119
120  /**
121   * The picture associated with the link.
122   *
123   * @return The picture associated with the link.
124   */
125  @java.lang.SuppressWarnings("all")
126  @lombok.Generated
127  public String getPicture() {
128    return this.picture;
129  }
130
131  /**
132   * The picture associated with the link.
133   */
134  @java.lang.SuppressWarnings("all")
135  @lombok.Generated
136  public void setPicture(final String picture) {
137    this.picture = picture;
138  }
139
140  /**
141   * The actual URL that was shared.
142   *
143   * @return The actual URL that was shared.
144   */
145  @java.lang.SuppressWarnings("all")
146  @lombok.Generated
147  public String getLink() {
148    return this.link;
149  }
150
151  /**
152   * The actual URL that was shared.
153   */
154  @java.lang.SuppressWarnings("all")
155  @lombok.Generated
156  public void setLink(final String link) {
157    this.link = link;
158  }
159
160  /**
161   * The link description.
162   *
163   * @return The link description.
164   */
165  @java.lang.SuppressWarnings("all")
166  @lombok.Generated
167  public String getDescription() {
168    return this.description;
169  }
170
171  /**
172   * The link description.
173   */
174  @java.lang.SuppressWarnings("all")
175  @lombok.Generated
176  public void setDescription(final String description) {
177    this.description = description;
178  }
179
180  /**
181   * The link icon.
182   *
183   * @return The link icon.
184   */
185  @java.lang.SuppressWarnings("all")
186  @lombok.Generated
187  public String getIcon() {
188    return this.icon;
189  }
190
191  /**
192   * The link icon.
193   */
194  @java.lang.SuppressWarnings("all")
195  @lombok.Generated
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  @lombok.Generated
209  public Date getCreatedTime() {
210    return this.createdTime;
211  }
212
213  /**
214   * The time at which this object was created, if available.
215   *
216   * @since 1.6.3
217   */
218  @java.lang.SuppressWarnings("all")
219  @lombok.Generated
220  public void setCreatedTime(final Date createdTime) {
221    this.createdTime = createdTime;
222  }
223}