Class DurationRange
- java.lang.Object
-
- com.amazonaws.services.inspector.model.DurationRange
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DurationRange extends Object implements Serializable, Cloneable
This data type is used in the AssessmentTemplateFilter data type.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DurationRange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
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; useful for testing and debugging.DurationRange
withMaxSeconds(Integer maxSeconds)
The maximum value of the duration range.DurationRange
withMinSeconds(Integer minSeconds)
The minimum value of the duration range.
-
-
-
Method Detail
-
setMinSeconds
public void setMinSeconds(Integer minSeconds)
The minimum value of the duration range. Must be greater than zero.
- Parameters:
minSeconds
- The minimum value of the duration range. Must be greater than zero.
-
getMinSeconds
public Integer getMinSeconds()
The minimum value of the duration range. Must be greater than zero.
- Returns:
- The minimum value of the duration range. Must be greater than zero.
-
withMinSeconds
public DurationRange withMinSeconds(Integer minSeconds)
The minimum value of the duration range. Must be greater than zero.
- Parameters:
minSeconds
- The minimum value of the duration range. Must be greater than zero.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxSeconds
public void setMaxSeconds(Integer maxSeconds)
The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).
- Parameters:
maxSeconds
- The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).
-
getMaxSeconds
public Integer getMaxSeconds()
The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).
- Returns:
- The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).
-
withMaxSeconds
public DurationRange withMaxSeconds(Integer maxSeconds)
The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).
- Parameters:
maxSeconds
- The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).- 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DurationRange clone()
-
-