0.14.0 (latest) 0.13.0 0.12.3 0.9.0 0.8.2 0.7.1 0.6.1 0.4.1 0.3.0 0.2.1 0.1.2 Reference documentation and code samples for the Google Cloud Oracle Database V1 Client class FailoverAutonomousDatabaseRequest.

The request for `OracleDatabase.FailoverAutonomousDatabase`.

Generated from protobuf message `google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest`

## Namespace

Google \\ Cloud \\ OracleDatabase \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
| `↳ peer_autonomous_database` | `string` Optional. The peer database name to fail over to. Required for cross-region standby, and must be omitted for in-region Data Guard. |

### getName

Required. The name of the Autonomous Database in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Required. The name of the Autonomous Database in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPeerAutonomousDatabase

Optional. The peer database name to fail over to. Required for cross-region
standby, and must be omitted for in-region Data Guard.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPeerAutonomousDatabase

Optional. The peer database name to fail over to. Required for cross-region
standby, and must be omitted for in-region Data Guard.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. Please see OracleDatabaseClient::autonomousDatabaseName() for help formatting this field. |
| `peerAutonomousDatabase` | `string` Optional. The peer database name to fail over to. Required for cross-region standby, and must be omitted for in-region Data Guard. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-oracledatabase/latest/V1.FailoverAutonomousDatabaseRequest` |   |