# Interface BackupInstanceRequestOrBuilder (0.39.0)

0.39.0 (latest) 0.37.0 0.34.0 0.33.0 0.31.0 0.29.0 0.28.0 0.26.0 0.24.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.16.0 0.14.0 0.13.0 0.10.0 0.9.0 0.8.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface BackupInstanceRequestOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getBackupId()

    public abstract String getBackupId()

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

`optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The backupId. |

### getBackupIdBytes()

    public abstract ByteString getBackupIdBytes()

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

`optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for backupId. |

### getName()

    public abstract String getName()

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.

`
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

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.

`
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getTtl()

    public abstract Duration getTtl()

Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
If not specified, the default value is 100 years.

`.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Duration.html` | The ttl. |

### getTtlOrBuilder()

    public abstract DurationOrBuilder getTtlOrBuilder()

Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
If not specified, the default value is 100 years.

`.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DurationOrBuilder.html` |   |

### hasBackupId()

    public abstract boolean hasBackupId()

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

`optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the backupId field is set. |

### hasTtl()

    public abstract boolean hasTtl()

Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
If not specified, the default value is 100 years.

`.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the ttl field is set. |