# Google Cloud Memorystore for Redis V1 API - Class Google::Cloud::Redis::Cluster::V1::BackupClusterRequest (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.6.0 0.5.0 0.4.2 0.3.0 0.2.2 0.1.0 Reference documentation and code samples for the Google Cloud Memorystore for Redis V1 API class Google::Cloud::Redis::Cluster::V1::BackupClusterRequest.

Request for \[BackupCluster\].

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #backup_id

    def backup_id() -> ::String

**Returns**

- (::String) --- Optional. The id of the backup to be created. If not specified, the default value (\[YYYYMMDDHHMMSS\]_\[Shortened Cluster UID\] is used.

### #backup_id=

    def backup_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The id of the backup to be created. If not specified, the default value (\[YYYYMMDDHHMMSS\]_\[Shortened Cluster UID\] is used.
**Returns**

- (::String) --- Optional. The id of the backup to be created. If not specified, the default value (\[YYYYMMDDHHMMSS\]_\[Shortened Cluster UID\] is used.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. Redis cluster resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a GCP region.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Redis cluster resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a GCP region.
**Returns**

- (::String) --- Required. Redis cluster resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a GCP region.

### #ttl

    def ttl() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1/latest/Google-Protobuf-Duration)) --- Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.

### #ttl=

    def ttl=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1/latest/Google-Protobuf-Duration)) --- Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1/latest/Google-Protobuf-Duration)) --- Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.