@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ScheduleConfig extends Object implements Serializable, Cloneable, StructuredPojo
This API enables you to specify the duration that the camera, or local media file, should record onto the Edge Agent.
The ScheduleConfig consists of the ScheduleExpression and the
DurationInMinutes attributes.
If the ScheduleConfig is not provided in the RecorderConfig, then the Edge Agent will
always be set to recording mode.
If the ScheduleConfig is not provided in the UploaderConfig, then the Edge Agent will
upload at regular intervals (every 1 hour).
| Constructor and Description |
|---|
ScheduleConfig() |
| Modifier and Type | Method and Description |
|---|---|
ScheduleConfig |
clone() |
boolean |
equals(Object obj) |
Integer |
getDurationInSeconds()
The total duration to record the media.
|
String |
getScheduleExpression()
The Quartz cron expression that takes care of scheduling jobs to record from the camera, or local media file,
onto the Edge Agent.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setDurationInSeconds(Integer durationInSeconds)
The total duration to record the media.
|
void |
setScheduleExpression(String scheduleExpression)
The Quartz cron expression that takes care of scheduling jobs to record from the camera, or local media file,
onto the Edge Agent.
|
String |
toString()
Returns a string representation of this object.
|
ScheduleConfig |
withDurationInSeconds(Integer durationInSeconds)
The total duration to record the media.
|
ScheduleConfig |
withScheduleExpression(String scheduleExpression)
The Quartz cron expression that takes care of scheduling jobs to record from the camera, or local media file,
onto the Edge Agent.
|
public void setScheduleExpression(String scheduleExpression)
The Quartz cron expression that takes care of scheduling jobs to record from the camera, or local media file,
onto the Edge Agent. If the ScheduleExpression is not provided for the RecorderConfig,
then the Edge Agent will always be set to recording mode.
For more information about Quartz, refer to the Cron Trigger Tutorial page to understand the valid expressions and its use.
scheduleExpression - The Quartz cron expression that takes care of scheduling jobs to record from the camera, or local media
file, onto the Edge Agent. If the ScheduleExpression is not provided for the
RecorderConfig, then the Edge Agent will always be set to recording mode.
For more information about Quartz, refer to the Cron Trigger Tutorial page to understand the valid expressions and its use.
public String getScheduleExpression()
The Quartz cron expression that takes care of scheduling jobs to record from the camera, or local media file,
onto the Edge Agent. If the ScheduleExpression is not provided for the RecorderConfig,
then the Edge Agent will always be set to recording mode.
For more information about Quartz, refer to the Cron Trigger Tutorial page to understand the valid expressions and its use.
ScheduleExpression is not provided for the
RecorderConfig, then the Edge Agent will always be set to recording mode.
For more information about Quartz, refer to the Cron Trigger Tutorial page to understand the valid expressions and its use.
public ScheduleConfig withScheduleExpression(String scheduleExpression)
The Quartz cron expression that takes care of scheduling jobs to record from the camera, or local media file,
onto the Edge Agent. If the ScheduleExpression is not provided for the RecorderConfig,
then the Edge Agent will always be set to recording mode.
For more information about Quartz, refer to the Cron Trigger Tutorial page to understand the valid expressions and its use.
scheduleExpression - The Quartz cron expression that takes care of scheduling jobs to record from the camera, or local media
file, onto the Edge Agent. If the ScheduleExpression is not provided for the
RecorderConfig, then the Edge Agent will always be set to recording mode.
For more information about Quartz, refer to the Cron Trigger Tutorial page to understand the valid expressions and its use.
public void setDurationInSeconds(Integer durationInSeconds)
The total duration to record the media. If the ScheduleExpression attribute is provided, then the
DurationInSeconds attribute should also be specified.
durationInSeconds - The total duration to record the media. If the ScheduleExpression attribute is provided, then
the DurationInSeconds attribute should also be specified.public Integer getDurationInSeconds()
The total duration to record the media. If the ScheduleExpression attribute is provided, then the
DurationInSeconds attribute should also be specified.
ScheduleExpression attribute is provided,
then the DurationInSeconds attribute should also be specified.public ScheduleConfig withDurationInSeconds(Integer durationInSeconds)
The total duration to record the media. If the ScheduleExpression attribute is provided, then the
DurationInSeconds attribute should also be specified.
durationInSeconds - The total duration to record the media. If the ScheduleExpression attribute is provided, then
the DurationInSeconds attribute should also be specified.public String toString()
toString in class ObjectObject.toString()public ScheduleConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.