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