Class SlotDateTimeRangeRequest

java.lang.Object
com.amazonaws.services.ec2.model.SlotDateTimeRangeRequest
All Implemented Interfaces:
Serializable, Cloneable

public class SlotDateTimeRangeRequest extends Object implements Serializable, Cloneable

Describes the time period for a Scheduled Instance to start its first schedule. The time period must span less than one day.

See Also:
  • Constructor Details

    • SlotDateTimeRangeRequest

      public SlotDateTimeRangeRequest()
  • Method Details

    • setEarliestTime

      public void setEarliestTime(Date earliestTime)

      The earliest date and time, in UTC, for the Scheduled Instance to start.

      Parameters:
      earliestTime - The earliest date and time, in UTC, for the Scheduled Instance to start.
    • getEarliestTime

      public Date getEarliestTime()

      The earliest date and time, in UTC, for the Scheduled Instance to start.

      Returns:
      The earliest date and time, in UTC, for the Scheduled Instance to start.
    • withEarliestTime

      public SlotDateTimeRangeRequest withEarliestTime(Date earliestTime)

      The earliest date and time, in UTC, for the Scheduled Instance to start.

      Parameters:
      earliestTime - The earliest date and time, in UTC, for the Scheduled Instance to start.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setLatestTime

      public void setLatestTime(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.

      Parameters:
      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.
    • getLatestTime

      public 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.

      Returns:
      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.
    • withLatestTime

      public SlotDateTimeRangeRequest withLatestTime(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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public SlotDateTimeRangeRequest clone()
      Overrides:
      clone in class Object