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:
  • Constructor Details

    • DurationRange

      public DurationRange()
  • Method Details

    • 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 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 DurationRange clone()
      Overrides:
      clone in class Object