Interface SchedulingConfig.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<SchedulingConfig.Builder,SchedulingConfig>
,SdkBuilder<SchedulingConfig.Builder,SchedulingConfig>
,SdkPojo
- Enclosing class:
- SchedulingConfig
public static interface SchedulingConfig.Builder extends SdkPojo, CopyableBuilder<SchedulingConfig.Builder,SchedulingConfig>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SchedulingConfig.Builder
endBehavior(String endBehavior)
Specifies the end behavior for all job executions after a job reaches the selectedendTime
.SchedulingConfig.Builder
endBehavior(JobEndBehavior endBehavior)
Specifies the end behavior for all job executions after a job reaches the selectedendTime
.SchedulingConfig.Builder
endTime(String endTime)
The time a job will stop rollout of the job document to all devices in the target group for a job.SchedulingConfig.Builder
maintenanceWindows(Collection<MaintenanceWindow> maintenanceWindows)
An optional configuration within theSchedulingConfig
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.SchedulingConfig.Builder
maintenanceWindows(Consumer<MaintenanceWindow.Builder>... maintenanceWindows)
An optional configuration within theSchedulingConfig
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.SchedulingConfig.Builder
maintenanceWindows(MaintenanceWindow... maintenanceWindows)
An optional configuration within theSchedulingConfig
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.SchedulingConfig.Builder
startTime(String startTime)
The time a job will begin rollout of the job document to all devices in the target group for a job.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
startTime
SchedulingConfig.Builder startTime(String 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 thestartTime
is YYYY-MM-DD for the date and HH:MM for the time.For more information on the syntax for
startTime
when using an API command or the Command Line Interface, see Timestamp.- Parameters:
startTime
- The time a job will begin rollout of the job document to all devices in the target group for a job. ThestartTime
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 thestartTime
is YYYY-MM-DD for the date and HH:MM for the time.For more information on the syntax for
startTime
when using an API command or the Command Line Interface, see Timestamp.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
SchedulingConfig.Builder endTime(String 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 betweenstartTime
andendTime
is thirty minutes. The maximum duration betweenstartTime
andendTime
is two years. The date and time format for theendTime
is YYYY-MM-DD for the date and HH:MM for the time.For more information on the syntax for
endTime
when using an API command or the Command Line Interface, see Timestamp.- Parameters:
endTime
- The time a job will stop rollout of the job document to all devices in the target group for a job. TheendTime
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 betweenstartTime
andendTime
is thirty minutes. The maximum duration betweenstartTime
andendTime
is two years. The date and time format for theendTime
is YYYY-MM-DD for the date and HH:MM for the time.For more information on the syntax for
endTime
when using an API command or the Command Line Interface, see Timestamp.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endBehavior
SchedulingConfig.Builder endBehavior(String endBehavior)
Specifies the end behavior for all job executions after a job reaches the selected
endTime
. IfendTime
is not selected when creating the job, thenendBehavior
does not apply.- Parameters:
endBehavior
- Specifies the end behavior for all job executions after a job reaches the selectedendTime
. IfendTime
is not selected when creating the job, thenendBehavior
does not apply.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
JobEndBehavior
,JobEndBehavior
-
endBehavior
SchedulingConfig.Builder endBehavior(JobEndBehavior endBehavior)
Specifies the end behavior for all job executions after a job reaches the selected
endTime
. IfendTime
is not selected when creating the job, thenendBehavior
does not apply.- Parameters:
endBehavior
- Specifies the end behavior for all job executions after a job reaches the selectedendTime
. IfendTime
is not selected when creating the job, thenendBehavior
does not apply.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
JobEndBehavior
,JobEndBehavior
-
maintenanceWindows
SchedulingConfig.Builder maintenanceWindows(Collection<MaintenanceWindow> 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.- Parameters:
maintenanceWindows
- An optional configuration within theSchedulingConfig
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:
- Returns a reference to this object so that method calls can be chained together.
-
maintenanceWindows
SchedulingConfig.Builder maintenanceWindows(MaintenanceWindow... 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.- Parameters:
maintenanceWindows
- An optional configuration within theSchedulingConfig
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:
- Returns a reference to this object so that method calls can be chained together.
-
maintenanceWindows
SchedulingConfig.Builder maintenanceWindows(Consumer<MaintenanceWindow.Builder>... maintenanceWindows)
An optional configuration within the
This is a convenience method that creates an instance of theSchedulingConfig
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.MaintenanceWindow.Builder
avoiding the need to create one manually viaMaintenanceWindow.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#maintenanceWindows(List
.) - Parameters:
maintenanceWindows
- a consumer that will call methods onMaintenanceWindow.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#maintenanceWindows(java.util.Collection
)
-
-