001// Generated by delombok at Sun Jul 07 22:01:31 CEST 2019
002/**
003 * Copyright (c) 2010-2019 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;
027
028/**
029 * Represents the <a href="https://developers.facebook.com/docs/graph-api/reference/life-event">Life Event Graph API</a>
030 * type.
031 * 
032 * @author <a href="http://restfb.com">Quang Pham Le Duy</a>
033 * @since 2.0.0
034 */
035public class PageLifeEvent extends FacebookType {
036  private static final long serialVersionUID = 1L;
037  /**
038   * The time when this milestone was published
039   */
040  @Facebook("created_time")
041  private Date createdTime;
042  /**
043   * Description of the milestone.
044   */
045  @Facebook
046  private String description;
047  /**
048   * The time when this milestone came to an end.
049   */
050  @Facebook("end_time")
051  private Date endTime;
052  /**
053   * The information of the Page that owns the milestone.
054   */
055  @Facebook("from")
056  private Page fromPage;
057  /**
058   * Whether the milestone is hidden or not.
059   */
060  @Facebook("is_hidden")
061  private Boolean isHidden;
062  /**
063   * The time when this milestone was started.
064   */
065  @Facebook("start_time")
066  private Date startTime;
067  /**
068   * The title of the milestone.
069   */
070  @Facebook
071  private String title;
072  /**
073   * The time when this milestone was updated.
074   */
075  @Facebook("updated_time")
076  private Date updatedTime;
077
078  /**
079   * The time when this milestone was published
080   * 
081   * @return The time when this milestone was published
082   */
083  @java.lang.SuppressWarnings("all")
084  public Date getCreatedTime() {
085    return this.createdTime;
086  }
087
088  /**
089   * The time when this milestone was published
090   */
091  @java.lang.SuppressWarnings("all")
092  public void setCreatedTime(final Date createdTime) {
093    this.createdTime = createdTime;
094  }
095
096  /**
097   * Description of the milestone.
098   * 
099   * @return Description of the milestone.
100   */
101  @java.lang.SuppressWarnings("all")
102  public String getDescription() {
103    return this.description;
104  }
105
106  /**
107   * Description of the milestone.
108   */
109  @java.lang.SuppressWarnings("all")
110  public void setDescription(final String description) {
111    this.description = description;
112  }
113
114  /**
115   * The time when this milestone came to an end.
116   * 
117   * @return The time when this milestone came to an end.
118   */
119  @java.lang.SuppressWarnings("all")
120  public Date getEndTime() {
121    return this.endTime;
122  }
123
124  /**
125   * The time when this milestone came to an end.
126   */
127  @java.lang.SuppressWarnings("all")
128  public void setEndTime(final Date endTime) {
129    this.endTime = endTime;
130  }
131
132  /**
133   * The information of the Page that owns the milestone.
134   * 
135   * @return The information of the Page that owns the milestone.
136   */
137  @java.lang.SuppressWarnings("all")
138  public Page getFromPage() {
139    return this.fromPage;
140  }
141
142  /**
143   * The information of the Page that owns the milestone.
144   */
145  @java.lang.SuppressWarnings("all")
146  public void setFromPage(final Page fromPage) {
147    this.fromPage = fromPage;
148  }
149
150  /**
151   * Whether the milestone is hidden or not.
152   *
153   * @return true if the post is hidden, otherwise return false.
154   */
155  @java.lang.SuppressWarnings("all")
156  public Boolean getIsHidden() {
157    return this.isHidden;
158  }
159
160  /**
161   * Whether the milestone is hidden or not.
162   */
163  @java.lang.SuppressWarnings("all")
164  public void setIsHidden(final Boolean isHidden) {
165    this.isHidden = isHidden;
166  }
167
168  /**
169   * The time when this milestone was started.
170   * 
171   * @return The time when this milestone was started.
172   */
173  @java.lang.SuppressWarnings("all")
174  public Date getStartTime() {
175    return this.startTime;
176  }
177
178  /**
179   * The time when this milestone was started.
180   */
181  @java.lang.SuppressWarnings("all")
182  public void setStartTime(final Date startTime) {
183    this.startTime = startTime;
184  }
185
186  /**
187   * The title of the milestone.
188   * 
189   * @return The title of the milestone.
190   */
191  @java.lang.SuppressWarnings("all")
192  public String getTitle() {
193    return this.title;
194  }
195
196  /**
197   * The title of the milestone.
198   */
199  @java.lang.SuppressWarnings("all")
200  public void setTitle(final String title) {
201    this.title = title;
202  }
203
204  /**
205   * The time when this milestone was updated.
206   * 
207   * @return The time when this milestone was updated.
208   */
209  @java.lang.SuppressWarnings("all")
210  public Date getUpdatedTime() {
211    return this.updatedTime;
212  }
213
214  /**
215   * The time when this milestone was updated.
216   */
217  @java.lang.SuppressWarnings("all")
218  public void setUpdatedTime(final Date updatedTime) {
219    this.updatedTime = updatedTime;
220  }
221}