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