001// Generated by delombok at Thu Aug 13 13:56:44 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;
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  @Facebook("created_time")
042  private Date createdTime;
043  /**
044   * Description of the milestone.
045   */
046  @Facebook
047  private String description;
048  /**
049   * The time when this milestone came to an end.
050   */
051  @Facebook("end_time")
052  private Date endTime;
053  /**
054   * The information of the Page that owns the milestone.
055   */
056  @Facebook("from")
057  private Page fromPage;
058  /**
059   * Whether the milestone is hidden or not.
060   */
061  @Facebook("is_hidden")
062  private Boolean isHidden;
063  /**
064   * The time when this milestone was started.
065   */
066  @Facebook("start_time")
067  private Date startTime;
068  /**
069   * The title of the milestone.
070   */
071  @Facebook
072  private String title;
073  /**
074   * The time when this milestone was updated.
075   */
076  @Facebook("updated_time")
077  private Date updatedTime;
078
079  /**
080   * The time when this milestone was published
081   *
082   * @return The time when this milestone was published
083   */
084  @Override
085  @java.lang.SuppressWarnings("all")
086  @lombok.Generated
087  public Date getCreatedTime() {
088    return this.createdTime;
089  }
090
091  /**
092   * The time when this milestone was published
093   */
094  @java.lang.SuppressWarnings("all")
095  @lombok.Generated
096  public void setCreatedTime(final Date createdTime) {
097    this.createdTime = createdTime;
098  }
099
100  /**
101   * Description of the milestone.
102   *
103   * @return Description of the milestone.
104   */
105  @java.lang.SuppressWarnings("all")
106  @lombok.Generated
107  public String getDescription() {
108    return this.description;
109  }
110
111  /**
112   * Description of the milestone.
113   */
114  @java.lang.SuppressWarnings("all")
115  @lombok.Generated
116  public void setDescription(final String description) {
117    this.description = description;
118  }
119
120  /**
121   * The time when this milestone came to an end.
122   *
123   * @return The time when this milestone came to an end.
124   */
125  @java.lang.SuppressWarnings("all")
126  @lombok.Generated
127  public Date getEndTime() {
128    return this.endTime;
129  }
130
131  /**
132   * The time when this milestone came to an end.
133   */
134  @java.lang.SuppressWarnings("all")
135  @lombok.Generated
136  public void setEndTime(final Date endTime) {
137    this.endTime = endTime;
138  }
139
140  /**
141   * The information of the Page that owns the milestone.
142   *
143   * @return The information of the Page that owns the milestone.
144   */
145  @java.lang.SuppressWarnings("all")
146  @lombok.Generated
147  public Page getFromPage() {
148    return this.fromPage;
149  }
150
151  /**
152   * The information of the Page that owns the milestone.
153   */
154  @java.lang.SuppressWarnings("all")
155  @lombok.Generated
156  public void setFromPage(final Page fromPage) {
157    this.fromPage = fromPage;
158  }
159
160  /**
161   * Whether the milestone is hidden or not.
162   *
163   * @return true if the post is hidden, otherwise return false.
164   */
165  @java.lang.SuppressWarnings("all")
166  @lombok.Generated
167  public Boolean getIsHidden() {
168    return this.isHidden;
169  }
170
171  /**
172   * Whether the milestone is hidden or not.
173   */
174  @java.lang.SuppressWarnings("all")
175  @lombok.Generated
176  public void setIsHidden(final Boolean isHidden) {
177    this.isHidden = isHidden;
178  }
179
180  /**
181   * The time when this milestone was started.
182   *
183   * @return The time when this milestone was started.
184   */
185  @java.lang.SuppressWarnings("all")
186  @lombok.Generated
187  public Date getStartTime() {
188    return this.startTime;
189  }
190
191  /**
192   * The time when this milestone was started.
193   */
194  @java.lang.SuppressWarnings("all")
195  @lombok.Generated
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  @lombok.Generated
207  public String getTitle() {
208    return this.title;
209  }
210
211  /**
212   * The title of the milestone.
213   */
214  @java.lang.SuppressWarnings("all")
215  @lombok.Generated
216  public void setTitle(final String title) {
217    this.title = title;
218  }
219
220  /**
221   * The time when this milestone was updated.
222   *
223   * @return The time when this milestone was updated.
224   */
225  @java.lang.SuppressWarnings("all")
226  @lombok.Generated
227  public Date getUpdatedTime() {
228    return this.updatedTime;
229  }
230
231  /**
232   * The time when this milestone was updated.
233   */
234  @java.lang.SuppressWarnings("all")
235  @lombok.Generated
236  public void setUpdatedTime(final Date updatedTime) {
237    this.updatedTime = updatedTime;
238  }
239}