Interface RetentionPeriod.Builder

  • Method Details

    • retentionPeriodValue

      RetentionPeriod.Builder retentionPeriodValue(Integer retentionPeriodValue)

      The period value for which the retention rule is to retain resources, measured in days. The supported retention periods are:

      • EBS volumes: 1 - 7 days

      • EBS snapshots and EBS-backed AMIs: 1 - 365 days

      Parameters:
      retentionPeriodValue - The period value for which the retention rule is to retain resources, measured in days. The supported retention periods are:

      • EBS volumes: 1 - 7 days

      • EBS snapshots and EBS-backed AMIs: 1 - 365 days

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • retentionPeriodUnit

      RetentionPeriod.Builder retentionPeriodUnit(String retentionPeriodUnit)

      The unit of time in which the retention period is measured. Currently, only DAYS is supported.

      Parameters:
      retentionPeriodUnit - The unit of time in which the retention period is measured. Currently, only DAYS is supported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • retentionPeriodUnit

      RetentionPeriod.Builder retentionPeriodUnit(RetentionPeriodUnit retentionPeriodUnit)

      The unit of time in which the retention period is measured. Currently, only DAYS is supported.

      Parameters:
      retentionPeriodUnit - The unit of time in which the retention period is measured. Currently, only DAYS is supported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: