@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Interval extends Object implements Serializable, Cloneable, StructuredPojo
The time period used to evaluate the SLO. It can be either a calendar interval or rolling interval.
Constructor and Description |
---|
Interval() |
Modifier and Type | Method and Description |
---|---|
Interval |
clone() |
boolean |
equals(Object obj) |
CalendarInterval |
getCalendarInterval()
If the interval is a calendar interval, this structure contains the interval specifications.
|
RollingInterval |
getRollingInterval()
If the interval is a rolling interval, this structure contains the interval specifications.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCalendarInterval(CalendarInterval calendarInterval)
If the interval is a calendar interval, this structure contains the interval specifications.
|
void |
setRollingInterval(RollingInterval rollingInterval)
If the interval is a rolling interval, this structure contains the interval specifications.
|
String |
toString()
Returns a string representation of this object.
|
Interval |
withCalendarInterval(CalendarInterval calendarInterval)
If the interval is a calendar interval, this structure contains the interval specifications.
|
Interval |
withRollingInterval(RollingInterval rollingInterval)
If the interval is a rolling interval, this structure contains the interval specifications.
|
public void setRollingInterval(RollingInterval rollingInterval)
If the interval is a rolling interval, this structure contains the interval specifications.
rollingInterval
- If the interval is a rolling interval, this structure contains the interval specifications.public RollingInterval getRollingInterval()
If the interval is a rolling interval, this structure contains the interval specifications.
public Interval withRollingInterval(RollingInterval rollingInterval)
If the interval is a rolling interval, this structure contains the interval specifications.
rollingInterval
- If the interval is a rolling interval, this structure contains the interval specifications.public void setCalendarInterval(CalendarInterval calendarInterval)
If the interval is a calendar interval, this structure contains the interval specifications.
calendarInterval
- If the interval is a calendar interval, this structure contains the interval specifications.public CalendarInterval getCalendarInterval()
If the interval is a calendar interval, this structure contains the interval specifications.
public Interval withCalendarInterval(CalendarInterval calendarInterval)
If the interval is a calendar interval, this structure contains the interval specifications.
calendarInterval
- If the interval is a calendar interval, this structure contains the interval specifications.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.