001// Generated by delombok at Tue Dec 10 13:42:03 UTC 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/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 public String getTitle() { 077 return this.title; 078 } 079 080 /** 081 * The title of the milestone 082 */ 083 @java.lang.SuppressWarnings("all") 084 public void setTitle(final String title) { 085 this.title = title; 086 } 087 088 /** 089 * The Page that posted the milestone. 090 * 091 * @return The Page that posted the milestone. 092 */ 093 @java.lang.SuppressWarnings("all") 094 public Page getFrom() { 095 return this.from; 096 } 097 098 /** 099 * The Page that posted the milestone. 100 */ 101 @java.lang.SuppressWarnings("all") 102 public void setFrom(final Page from) { 103 this.from = from; 104 } 105 106 /** 107 * The description of the milestone. 108 * 109 * @return The description of the milestone 110 */ 111 @java.lang.SuppressWarnings("all") 112 public String getDescription() { 113 return this.description; 114 } 115 116 /** 117 * The description of the milestone. 118 */ 119 @java.lang.SuppressWarnings("all") 120 public void setDescription(final String description) { 121 this.description = description; 122 } 123 124 /** 125 * The creation time of the milestone. 126 * 127 * @return The creation time of the milestone 128 */ 129 @Override 130 @java.lang.SuppressWarnings("all") 131 public Date getCreatedTime() { 132 return this.createdTime; 133 } 134 135 /** 136 * The creation time of the milestone. 137 */ 138 @java.lang.SuppressWarnings("all") 139 public void setCreatedTime(final Date createdTime) { 140 this.createdTime = createdTime; 141 } 142 143 /** 144 * The update time of the milestone. 145 * 146 * @return The update time of the milestone 147 */ 148 @java.lang.SuppressWarnings("all") 149 public Date getUpdatedTime() { 150 return this.updatedTime; 151 } 152 153 /** 154 * The update time of the milestone. 155 */ 156 @java.lang.SuppressWarnings("all") 157 public void setUpdatedTime(final Date updatedTime) { 158 this.updatedTime = updatedTime; 159 } 160 161 /** 162 * The start time of the milestone. 163 * 164 * @return The start time of the milestone 165 */ 166 @java.lang.SuppressWarnings("all") 167 public Date getStartTime() { 168 return this.startTime; 169 } 170 171 /** 172 * The start time of the milestone. 173 */ 174 @java.lang.SuppressWarnings("all") 175 public void setStartTime(final Date startTime) { 176 this.startTime = startTime; 177 } 178 179 /** 180 * The end time of the milestone. Page milestones have the same start and end time. 181 * 182 * @return The end time of the milestone. Page milestones have the same start and end time 183 */ 184 @java.lang.SuppressWarnings("all") 185 public Date getEndTime() { 186 return this.endTime; 187 } 188 189 /** 190 * The end time of the milestone. Page milestones have the same start and end time. 191 */ 192 @java.lang.SuppressWarnings("all") 193 public void setEndTime(final Date endTime) { 194 this.endTime = endTime; 195 } 196}