# Google Cloud Memorystore for Redis V1BETA1 API - Class Google::Cloud::Redis::Cluster::V1beta1::BackupClusterRequest (v0.11.0)

0.11.0 (latest) 0.10.0 0.9.1 0.8.0 0.7.1 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the Google Cloud Memorystore for Redis V1BETA1 API class Google::Cloud::Redis::Cluster::V1beta1::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-v1beta1/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-v1beta1/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-v1beta1/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.