1.8.4 (latest) 1.7.1 1.6.3 1.5.0 1.4.1 1.3.0 1.2.0 1.1.3 1.0.0 0.10.3 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.3 Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class UserPassword.

The username/password for a database user. Used for specifying initial
users at cluster creation time.

Generated from protobuf message `google.cloud.alloydb.v1.UserPassword`

## Namespace

Google \\ Cloud \\ AlloyDb \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ user` | `string` The database username. |
| `↳ password` | `string` The initial password for the user. |

### getUser

The database username.

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

### setUser

The database username.

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

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

### getPassword

The initial password for the user.

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

### setPassword

The initial password for the user.

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

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