001// Generated by delombok at Fri Nov 22 22:30:55 CET 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/milestone">Milestone Graph API
030 * type</a>.
031 */
032public class Milestone extends FacebookType {
033  /**
034   * The title of the milestone
035   */
036  @Facebook
037  private String title;
038  /**
039   * The Page that posted the milestone.
040   */
041  @Facebook
042  private Page from;
043  /**
044   * The description of the milestone.
045   */
046  @Facebook
047  private String description;
048  /**
049   * The creation time of the milestone.
050   */
051  @Facebook("created_time")
052  private Date createdTime;
053  /**
054   * The update time of the milestone.
055   */
056  @Facebook("updated_time")
057  private Date updatedTime;
058  /**
059   * The start time of the milestone.
060   */
061  @Facebook("start_time")
062  private Date startTime;
063  /**
064   * The end time of the milestone. Page milestones have the same start and end time.
065   */
066  @Facebook("end_time")
067  private Date endTime;
068
069  /**
070   * The title of the milestone
071   *
072   * @return The title of the milestone
073   */
074  @java.lang.SuppressWarnings("all")
075  public String getTitle() {
076    return this.title;
077  }
078
079  /**
080   * The title of the milestone
081   */
082  @java.lang.SuppressWarnings("all")
083  public void setTitle(final String title) {
084    this.title = title;
085  }
086
087  /**
088   * The Page that posted the milestone.
089   *
090   * @return The Page that posted the milestone.
091   */
092  @java.lang.SuppressWarnings("all")
093  public Page getFrom() {
094    return this.from;
095  }
096
097  /**
098   * The Page that posted the milestone.
099   */
100  @java.lang.SuppressWarnings("all")
101  public void setFrom(final Page from) {
102    this.from = from;
103  }
104
105  /**
106   * The description of the milestone.
107   *
108   * @return The description of the milestone
109   */
110  @java.lang.SuppressWarnings("all")
111  public String getDescription() {
112    return this.description;
113  }
114
115  /**
116   * The description of the milestone.
117   */
118  @java.lang.SuppressWarnings("all")
119  public void setDescription(final String description) {
120    this.description = description;
121  }
122
123  /**
124   * The creation time of the milestone.
125   *
126   * @return The creation time of the milestone
127   */
128  @java.lang.SuppressWarnings("all")
129  public Date getCreatedTime() {
130    return this.createdTime;
131  }
132
133  /**
134   * The creation time of the milestone.
135   */
136  @java.lang.SuppressWarnings("all")
137  public void setCreatedTime(final Date createdTime) {
138    this.createdTime = createdTime;
139  }
140
141  /**
142   * The update time of the milestone.
143   *
144   * @return The update time of the milestone
145   */
146  @java.lang.SuppressWarnings("all")
147  public Date getUpdatedTime() {
148    return this.updatedTime;
149  }
150
151  /**
152   * The update time of the milestone.
153   */
154  @java.lang.SuppressWarnings("all")
155  public void setUpdatedTime(final Date updatedTime) {
156    this.updatedTime = updatedTime;
157  }
158
159  /**
160   * The start time of the milestone.
161   *
162   * @return The start time of the milestone
163   */
164  @java.lang.SuppressWarnings("all")
165  public Date getStartTime() {
166    return this.startTime;
167  }
168
169  /**
170   * The start time of the milestone.
171   */
172  @java.lang.SuppressWarnings("all")
173  public void setStartTime(final Date startTime) {
174    this.startTime = startTime;
175  }
176
177  /**
178   * The end time of the milestone. Page milestones have the same start and end time.
179   *
180   * @return The end time of the milestone. Page milestones have the same start and end time
181   */
182  @java.lang.SuppressWarnings("all")
183  public Date getEndTime() {
184    return this.endTime;
185  }
186
187  /**
188   * The end time of the milestone. Page milestones have the same start and end time.
189   */
190  @java.lang.SuppressWarnings("all")
191  public void setEndTime(final Date endTime) {
192    this.endTime = endTime;
193  }
194}