# Memorystore V1 API - Class Google::Cloud::Memorystore::V1::BackupInstanceRequest (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Memorystore V1 API class Google::Cloud::Memorystore::V1::BackupInstanceRequest.

Request for \[BackupInstance\].

## 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 Instance 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 Instance UID\] is used.
**Returns**

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

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. Instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a Google Cloud region.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a Google Cloud region.
**Returns**

- (::String) --- Required. Instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a Google Cloud region.

### #ttl

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

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memorystore-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-memorystore-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-memorystore-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.