@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TaskSchedule extends Object implements Serializable, Cloneable, StructuredPojo
Configures your DataSync task to run on a schedule (at a minimum interval of 1 hour).
Constructor and Description |
---|
TaskSchedule() |
Modifier and Type | Method and Description |
---|---|
TaskSchedule |
clone() |
boolean |
equals(Object obj) |
String |
getScheduleExpression()
Specifies your task schedule by using a cron expression in UTC time.
|
String |
getStatus()
Specifies whether to enable or disable your task schedule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setScheduleExpression(String scheduleExpression)
Specifies your task schedule by using a cron expression in UTC time.
|
void |
setStatus(String status)
Specifies whether to enable or disable your task schedule.
|
String |
toString()
Returns a string representation of this object.
|
TaskSchedule |
withScheduleExpression(String scheduleExpression)
Specifies your task schedule by using a cron expression in UTC time.
|
TaskSchedule |
withStatus(ScheduleStatus status)
Specifies whether to enable or disable your task schedule.
|
TaskSchedule |
withStatus(String status)
Specifies whether to enable or disable your task schedule.
|
public void setScheduleExpression(String scheduleExpression)
Specifies your task schedule by using a cron expression in UTC time. For information about cron expression syntax, see the Amazon EventBridge User Guide .
scheduleExpression
- Specifies your task schedule by using a cron expression in UTC time. For information about cron expression
syntax, see the Amazon
EventBridge User Guide .public String getScheduleExpression()
Specifies your task schedule by using a cron expression in UTC time. For information about cron expression syntax, see the Amazon EventBridge User Guide .
public TaskSchedule withScheduleExpression(String scheduleExpression)
Specifies your task schedule by using a cron expression in UTC time. For information about cron expression syntax, see the Amazon EventBridge User Guide .
scheduleExpression
- Specifies your task schedule by using a cron expression in UTC time. For information about cron expression
syntax, see the Amazon
EventBridge User Guide .public void setStatus(String status)
Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there can be situations where you need to disable it. For example, you might need to pause a recurring transfer to fix an issue with your task or perform maintenance on your storage system.
DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails .
status
- Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there
can be situations where you need to disable it. For example, you might need to pause a recurring transfer
to fix an issue with your task or perform maintenance on your storage system.
DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails.
ScheduleStatus
public String getStatus()
Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there can be situations where you need to disable it. For example, you might need to pause a recurring transfer to fix an issue with your task or perform maintenance on your storage system.
DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails .
DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails.
ScheduleStatus
public TaskSchedule withStatus(String status)
Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there can be situations where you need to disable it. For example, you might need to pause a recurring transfer to fix an issue with your task or perform maintenance on your storage system.
DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails .
status
- Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there
can be situations where you need to disable it. For example, you might need to pause a recurring transfer
to fix an issue with your task or perform maintenance on your storage system.
DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails.
ScheduleStatus
public TaskSchedule withStatus(ScheduleStatus status)
Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there can be situations where you need to disable it. For example, you might need to pause a recurring transfer to fix an issue with your task or perform maintenance on your storage system.
DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails .
status
- Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there
can be situations where you need to disable it. For example, you might need to pause a recurring transfer
to fix an issue with your task or perform maintenance on your storage system.
DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails.
ScheduleStatus
public String toString()
toString
in class Object
Object.toString()
public TaskSchedule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.