com.google.api.services.storagetransfer.model.Schedule Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* 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.
*/
/*
* This code was generated by https://code.google.com/p/google-apis-client-generator/
* (build: 2015-07-16 18:28:29 UTC)
* on 2015-07-22 at 02:28:25 UTC
* Modify at your own risk.
*/
package com.google.api.services.storagetransfer.model;
/**
* Transfers can be scheduled to recur or run just once.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Google Storage Transfer API. For a detailed
* explanation see:
* http://code.google.com/p/google-http-java-client/wiki/JSON
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class Schedule extends com.google.api.client.json.GenericJson {
/**
* The last day the recurring transfer will be run. If 'scheduleEndDate' is the same as
* 'scheduleStartDate', the transfer will be executed only once.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Date scheduleEndDate;
/**
* The first day the recurring transfer is scheduled to run. Required.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Date scheduleStartDate;
/**
* The time in UTC at which the transfer will be scheduled to start in a day. Transfers may start
* later than this time. If not specified, transfers are scheduled to start at midnight UTC.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private TimeOfDay startTimeOfDay;
/**
* The last day the recurring transfer will be run. If 'scheduleEndDate' is the same as
* 'scheduleStartDate', the transfer will be executed only once.
* @return value or {@code null} for none
*/
public Date getScheduleEndDate() {
return scheduleEndDate;
}
/**
* The last day the recurring transfer will be run. If 'scheduleEndDate' is the same as
* 'scheduleStartDate', the transfer will be executed only once.
* @param scheduleEndDate scheduleEndDate or {@code null} for none
*/
public Schedule setScheduleEndDate(Date scheduleEndDate) {
this.scheduleEndDate = scheduleEndDate;
return this;
}
/**
* The first day the recurring transfer is scheduled to run. Required.
* @return value or {@code null} for none
*/
public Date getScheduleStartDate() {
return scheduleStartDate;
}
/**
* The first day the recurring transfer is scheduled to run. Required.
* @param scheduleStartDate scheduleStartDate or {@code null} for none
*/
public Schedule setScheduleStartDate(Date scheduleStartDate) {
this.scheduleStartDate = scheduleStartDate;
return this;
}
/**
* The time in UTC at which the transfer will be scheduled to start in a day. Transfers may start
* later than this time. If not specified, transfers are scheduled to start at midnight UTC.
* @return value or {@code null} for none
*/
public TimeOfDay getStartTimeOfDay() {
return startTimeOfDay;
}
/**
* The time in UTC at which the transfer will be scheduled to start in a day. Transfers may start
* later than this time. If not specified, transfers are scheduled to start at midnight UTC.
* @param startTimeOfDay startTimeOfDay or {@code null} for none
*/
public Schedule setStartTimeOfDay(TimeOfDay startTimeOfDay) {
this.startTimeOfDay = startTimeOfDay;
return this;
}
@Override
public Schedule set(String fieldName, Object value) {
return (Schedule) super.set(fieldName, value);
}
@Override
public Schedule clone() {
return (Schedule) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy