@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DurationRange extends Object implements Serializable, Cloneable, StructuredPojo
This data type is used in the AssessmentTemplateFilter data type.
Constructor and Description |
---|
DurationRange() |
Modifier and Type | Method and Description |
---|---|
DurationRange |
clone() |
boolean |
equals(Object obj) |
Integer |
getMaxSeconds()
The maximum value of the duration range.
|
Integer |
getMinSeconds()
The minimum value of the duration range.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMaxSeconds(Integer maxSeconds)
The maximum value of the duration range.
|
void |
setMinSeconds(Integer minSeconds)
The minimum value of the duration range.
|
String |
toString()
Returns a string representation of this object.
|
DurationRange |
withMaxSeconds(Integer maxSeconds)
The maximum value of the duration range.
|
DurationRange |
withMinSeconds(Integer minSeconds)
The minimum value of the duration range.
|
public void setMinSeconds(Integer minSeconds)
The minimum value of the duration range. Must be greater than zero.
minSeconds
- The minimum value of the duration range. Must be greater than zero.public Integer getMinSeconds()
The minimum value of the duration range. Must be greater than zero.
public DurationRange withMinSeconds(Integer minSeconds)
The minimum value of the duration range. Must be greater than zero.
minSeconds
- The minimum value of the duration range. Must be greater than zero.public void setMaxSeconds(Integer maxSeconds)
The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).
maxSeconds
- The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).public Integer getMaxSeconds()
The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).
public DurationRange withMaxSeconds(Integer maxSeconds)
The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).
maxSeconds
- The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).public String toString()
toString
in class Object
Object.toString()
public DurationRange clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.