public class SlotDateTimeRangeRequest
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the time period for a Scheduled Instance to start its first schedule. The time period must span less than one day.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
earliestTime
The earliest date and time, in UTC, for the Scheduled Instance to start.
|
private java.util.Date |
latestTime
The latest date and time, in UTC, for the Scheduled Instance to start.
|
Constructor and Description |
---|
SlotDateTimeRangeRequest() |
Modifier and Type | Method and Description |
---|---|
SlotDateTimeRangeRequest |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getEarliestTime()
The earliest date and time, in UTC, for the Scheduled Instance to start.
|
java.util.Date |
getLatestTime()
The latest date and time, in UTC, for the Scheduled Instance to start.
|
int |
hashCode() |
void |
setEarliestTime(java.util.Date earliestTime)
The earliest date and time, in UTC, for the Scheduled Instance to start.
|
void |
setLatestTime(java.util.Date latestTime)
The latest date and time, in UTC, for the Scheduled Instance to start.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SlotDateTimeRangeRequest |
withEarliestTime(java.util.Date earliestTime)
The earliest date and time, in UTC, for the Scheduled Instance to start.
|
SlotDateTimeRangeRequest |
withLatestTime(java.util.Date latestTime)
The latest date and time, in UTC, for the Scheduled Instance to start.
|
private java.util.Date earliestTime
The earliest date and time, in UTC, for the Scheduled Instance to start.
private java.util.Date latestTime
The latest date and time, in UTC, for the Scheduled Instance to start. This value must be later than or equal to the earliest date and at most three months in the future.
public void setEarliestTime(java.util.Date earliestTime)
The earliest date and time, in UTC, for the Scheduled Instance to start.
earliestTime
- The earliest date and time, in UTC, for the Scheduled Instance to
start.public java.util.Date getEarliestTime()
The earliest date and time, in UTC, for the Scheduled Instance to start.
public SlotDateTimeRangeRequest withEarliestTime(java.util.Date earliestTime)
The earliest date and time, in UTC, for the Scheduled Instance to start.
earliestTime
- The earliest date and time, in UTC, for the Scheduled Instance to
start.public void setLatestTime(java.util.Date latestTime)
The latest date and time, in UTC, for the Scheduled Instance to start. This value must be later than or equal to the earliest date and at most three months in the future.
latestTime
- The latest date and time, in UTC, for the Scheduled Instance to
start. This value must be later than or equal to the earliest date
and at most three months in the future.public java.util.Date getLatestTime()
The latest date and time, in UTC, for the Scheduled Instance to start. This value must be later than or equal to the earliest date and at most three months in the future.
public SlotDateTimeRangeRequest withLatestTime(java.util.Date latestTime)
The latest date and time, in UTC, for the Scheduled Instance to start. This value must be later than or equal to the earliest date and at most three months in the future.
latestTime
- The latest date and time, in UTC, for the Scheduled Instance to
start. This value must be later than or equal to the earliest date
and at most three months in the future.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SlotDateTimeRangeRequest clone()
clone
in class java.lang.Object