com.smartsheet.api.models.UpdateRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smartsheet-sdk-java Show documentation
Show all versions of smartsheet-sdk-java Show documentation
Library for connecting to Smartsheet Services
/*
* Copyright (C) 2023 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.smartsheet.api.models;
import java.util.Date;
/**
* Represents the UpdateRequest object.
* @see Using Update Request Help
*/
public class UpdateRequest extends MultiRowEmail {
/**
* Represents the ID of the update request.
*/
private Long id;
/**
* User object containing name and email of the sender.
*/
private User sentBy;
/**
* The schedule for which update requests will be sent out.
*/
private Schedule schedule;
/**
* The date and time for when this request was originally created.
*/
private Date createdAt;
/**
* The date and time for when the last change was made to this request.
*/
private Date modifiedAt;
/**
* Get the Id of the update request.
*
* @return id
*/
public Long getId() {
return id;
}
/**
* Set the Id of the update request.
*/
public UpdateRequest setId(Long id) {
this.id = id;
return this;
}
/**
* Gets the User object containing the name and email of the sender
*
* @return sentBy
*/
public User getSentBy() {
return sentBy;
}
/**
* Sets the User object containing the name and email of the sender
*/
public UpdateRequest setSentBy(User sentBy) {
this.sentBy = sentBy;
return this;
}
/**
* Gets the schedule for which update requests will be sent out.
*
* @return schedule
*/
public Schedule getSchedule() {
return schedule;
}
/**
* Sets the schedule for which update requests will be sent out.
*/
public UpdateRequest setSchedule(Schedule schedule) {
this.schedule = schedule;
return this;
}
/**
* Gets the date and time for when this request was originally created.
*
* @return createdAt
*/
public Date getCreatedAt() {
return createdAt;
}
/**
* Sets the date and time for when this request was originally created.
*/
public UpdateRequest setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Get the date and time for when the last change was made to this request.
*
* @return modifiedAt
*/
public Date getModifiedAt() {
return modifiedAt;
}
/**
* Set the date and time for when the last change was made to this request.
*/
public UpdateRequest setModifiedAt(Date modifiedAt) {
this.modifiedAt = modifiedAt;
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy