/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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.amazonaws.services.iot.model; import java.io.Serializable; /** *
* Specifies the date and time that a job will begin the rollout of the job * document to all devices in the target group. Additionally, you can specify * the end behavior for each job execution when it reaches the scheduled end * time. *
*/ public class SchedulingConfig implements Serializable { /** *
* The time a job will begin rollout of the job document to all devices in
* the target group for a job. The startTime
can be scheduled
* up to a year in advance and must be scheduled a minimum of thirty minutes
* from the current time. The date and time format for the
* startTime
is YYYY-MM-DD for the date and HH:MM for the time.
*
* Constraints:
* Length: 1 - 64
*/
private String startTime;
/**
*
* The time a job will stop rollout of the job document to all devices in
* the target group for a job. The endTime
must take place no
* later than two years from the current time and be scheduled a minimum of
* thirty minutes from the current time. The minimum duration between
* startTime
and endTime
is thirty minutes. The
* maximum duration between startTime
and endTime
* is two years. The date and time format for the endTime
is
* YYYY-MM-DD for the date and HH:MM for the time.
*
* Constraints:
* Length: 1 - 64
*/
private String endTime;
/**
*
* Specifies the end behavior for all job executions after a job reaches the
* selected endTime
. If endTime
is not selected
* when creating the job, then endBehavior
does not apply.
*
* Constraints:
* Allowed Values: STOP_ROLLOUT, CANCEL, FORCE_CANCEL
*/
private String endBehavior;
/**
*
* An optional configuration within the SchedulingConfig
to
* setup a recurring maintenance window with a predetermined start time and
* duration for the rollout of a job document to all devices in a target
* group for a job.
*
* The time a job will begin rollout of the job document to all devices in
* the target group for a job. The startTime
can be scheduled
* up to a year in advance and must be scheduled a minimum of thirty minutes
* from the current time. The date and time format for the
* startTime
is YYYY-MM-DD for the date and HH:MM for the time.
*
* Constraints:
* Length: 1 - 64
*
* @return
* The time a job will begin rollout of the job document to all
* devices in the target group for a job. The startTime
* can be scheduled up to a year in advance and must be scheduled a
* minimum of thirty minutes from the current time. The date and
* time format for the startTime
is YYYY-MM-DD for the
* date and HH:MM for the time.
*
* The time a job will begin rollout of the job document to all devices in
* the target group for a job. The startTime
can be scheduled
* up to a year in advance and must be scheduled a minimum of thirty minutes
* from the current time. The date and time format for the
* startTime
is YYYY-MM-DD for the date and HH:MM for the time.
*
* Constraints:
* Length: 1 - 64
*
* @param startTime
* The time a job will begin rollout of the job document to all
* devices in the target group for a job. The
* startTime
can be scheduled up to a year in
* advance and must be scheduled a minimum of thirty minutes from
* the current time. The date and time format for the
* startTime
is YYYY-MM-DD for the date and HH:MM
* for the time.
*
* The time a job will begin rollout of the job document to all devices in
* the target group for a job. The startTime
can be scheduled
* up to a year in advance and must be scheduled a minimum of thirty minutes
* from the current time. The date and time format for the
* startTime
is YYYY-MM-DD for the date and HH:MM for the time.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 64
*
* @param startTime
* The time a job will begin rollout of the job document to all
* devices in the target group for a job. The
* startTime
can be scheduled up to a year in
* advance and must be scheduled a minimum of thirty minutes from
* the current time. The date and time format for the
* startTime
is YYYY-MM-DD for the date and HH:MM
* for the time.
*
* The time a job will stop rollout of the job document to all devices in
* the target group for a job. The endTime
must take place no
* later than two years from the current time and be scheduled a minimum of
* thirty minutes from the current time. The minimum duration between
* startTime
and endTime
is thirty minutes. The
* maximum duration between startTime
and endTime
* is two years. The date and time format for the endTime
is
* YYYY-MM-DD for the date and HH:MM for the time.
*
* Constraints:
* Length: 1 - 64
*
* @return
* The time a job will stop rollout of the job document to all
* devices in the target group for a job. The endTime
* must take place no later than two years from the current time and
* be scheduled a minimum of thirty minutes from the current time.
* The minimum duration between startTime
and
* endTime
is thirty minutes. The maximum duration
* between startTime
and endTime
is two
* years. The date and time format for the endTime
is
* YYYY-MM-DD for the date and HH:MM for the time.
*
* The time a job will stop rollout of the job document to all devices in
* the target group for a job. The endTime
must take place no
* later than two years from the current time and be scheduled a minimum of
* thirty minutes from the current time. The minimum duration between
* startTime
and endTime
is thirty minutes. The
* maximum duration between startTime
and endTime
* is two years. The date and time format for the endTime
is
* YYYY-MM-DD for the date and HH:MM for the time.
*
* Constraints:
* Length: 1 - 64
*
* @param endTime
* The time a job will stop rollout of the job document to all
* devices in the target group for a job. The
* endTime
must take place no later than two years
* from the current time and be scheduled a minimum of thirty
* minutes from the current time. The minimum duration between
* startTime
and endTime
is thirty
* minutes. The maximum duration between startTime
* and endTime
is two years. The date and time
* format for the endTime
is YYYY-MM-DD for the date
* and HH:MM for the time.
*
* The time a job will stop rollout of the job document to all devices in
* the target group for a job. The endTime
must take place no
* later than two years from the current time and be scheduled a minimum of
* thirty minutes from the current time. The minimum duration between
* startTime
and endTime
is thirty minutes. The
* maximum duration between startTime
and endTime
* is two years. The date and time format for the endTime
is
* YYYY-MM-DD for the date and HH:MM for the time.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 64
*
* @param endTime
* The time a job will stop rollout of the job document to all
* devices in the target group for a job. The
* endTime
must take place no later than two years
* from the current time and be scheduled a minimum of thirty
* minutes from the current time. The minimum duration between
* startTime
and endTime
is thirty
* minutes. The maximum duration between startTime
* and endTime
is two years. The date and time
* format for the endTime
is YYYY-MM-DD for the date
* and HH:MM for the time.
*
* Specifies the end behavior for all job executions after a job reaches the
* selected endTime
. If endTime
is not selected
* when creating the job, then endBehavior
does not apply.
*
* Constraints:
* Allowed Values: STOP_ROLLOUT, CANCEL, FORCE_CANCEL
*
* @return
* Specifies the end behavior for all job executions after a job
* reaches the selected endTime
. If
* endTime
is not selected when creating the job, then
* endBehavior
does not apply.
*
* Specifies the end behavior for all job executions after a job reaches the
* selected endTime
. If endTime
is not selected
* when creating the job, then endBehavior
does not apply.
*
* Constraints:
* Allowed Values: STOP_ROLLOUT, CANCEL, FORCE_CANCEL
*
* @param endBehavior
* Specifies the end behavior for all job executions after a job
* reaches the selected endTime
. If
* endTime
is not selected when creating the job,
* then endBehavior
does not apply.
*
* Specifies the end behavior for all job executions after a job reaches the
* selected endTime
. If endTime
is not selected
* when creating the job, then endBehavior
does not apply.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: STOP_ROLLOUT, CANCEL, FORCE_CANCEL
*
* @param endBehavior
* Specifies the end behavior for all job executions after a job
* reaches the selected endTime
. If
* endTime
is not selected when creating the job,
* then endBehavior
does not apply.
*
* Specifies the end behavior for all job executions after a job reaches the
* selected endTime
. If endTime
is not selected
* when creating the job, then endBehavior
does not apply.
*
* Constraints:
* Allowed Values: STOP_ROLLOUT, CANCEL, FORCE_CANCEL
*
* @param endBehavior
* Specifies the end behavior for all job executions after a job
* reaches the selected endTime
. If
* endTime
is not selected when creating the job,
* then endBehavior
does not apply.
*
* Specifies the end behavior for all job executions after a job reaches the
* selected endTime
. If endTime
is not selected
* when creating the job, then endBehavior
does not apply.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: STOP_ROLLOUT, CANCEL, FORCE_CANCEL
*
* @param endBehavior
* Specifies the end behavior for all job executions after a job
* reaches the selected endTime
. If
* endTime
is not selected when creating the job,
* then endBehavior
does not apply.
*
* An optional configuration within the SchedulingConfig
to
* setup a recurring maintenance window with a predetermined start time and
* duration for the rollout of a job document to all devices in a target
* group for a job.
*
* An optional configuration within the
* SchedulingConfig
to setup a recurring maintenance
* window with a predetermined start time and duration for the
* rollout of a job document to all devices in a target group for a
* job.
*
* An optional configuration within the SchedulingConfig
to
* setup a recurring maintenance window with a predetermined start time and
* duration for the rollout of a job document to all devices in a target
* group for a job.
*
* An optional configuration within the
* SchedulingConfig
to setup a recurring maintenance
* window with a predetermined start time and duration for the
* rollout of a job document to all devices in a target group for
* a job.
*
* An optional configuration within the SchedulingConfig
to
* setup a recurring maintenance window with a predetermined start time and
* duration for the rollout of a job document to all devices in a target
* group for a job.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param maintenanceWindows
* An optional configuration within the
* SchedulingConfig
to setup a recurring maintenance
* window with a predetermined start time and duration for the
* rollout of a job document to all devices in a target group for
* a job.
*
* An optional configuration within the SchedulingConfig
to
* setup a recurring maintenance window with a predetermined start time and
* duration for the rollout of a job document to all devices in a target
* group for a job.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param maintenanceWindows
* An optional configuration within the
* SchedulingConfig
to setup a recurring maintenance
* window with a predetermined start time and duration for the
* rollout of a job document to all devices in a target group for
* a job.
*