# AlloyDB V1 API - Class Google::Cloud::AlloyDB::V1::AutomatedBackupPolicy::QuantityBasedRetention (v1.9.0)

1.9.0 (latest) 1.7.0 1.6.2 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.12.0 0.11.0 0.10.0 0.9.2 0.8.2 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the AlloyDB V1 API class Google::Cloud::AlloyDB::V1::AutomatedBackupPolicy::QuantityBasedRetention.

A quantity based policy specifies that a certain number of the most recent
successful backups should be retained.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #count

    def count() -> ::Integer

**Returns**

- (::Integer) --- The number of backups to retain.

### #count=

    def count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The number of backups to retain.
**Returns**

- (::Integer) --- The number of backups to retain.