# Google Cloud Datastream V1 Client - Class MysqlProfile (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.0 2.1.1 2.0.1 1.5.5 1.4.2 1.3.0 1.2.1 1.1.0 1.0.5 Reference documentation and code samples for the Google Cloud Datastream V1 Client class MysqlProfile.

MySQL database profile.

Generated from protobuf message `google.cloud.datastream.v1.MysqlProfile`

## Namespace

Google \\ Cloud \\ Datastream \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ hostname` | `string` Required. Hostname for the MySQL connection. |
| `↳ port` | `int` Port for the MySQL connection, default value is 3306. |
| `↳ username` | `string` Required. Username for the MySQL connection. |
| `↳ password` | `string` Optional. Input only. Password for the MySQL connection. Mutually exclusive with the `secret_manager_stored_password` field. |
| `↳ ssl_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.MysqlSslConfig` SSL configuration for the MySQL connection. |
| `↳ secret_manager_stored_password` | `string` Optional. A reference to a Secret Manager resource name storing the MySQL connection password. Mutually exclusive with the `password` field. |

### getHostname

Required. Hostname for the MySQL connection.

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

### setHostname

Required. Hostname for the MySQL connection.

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

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

### getPort

Port for the MySQL connection, default value is 3306.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setPort

Port for the MySQL connection, default value is 3306.

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

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

### getUsername

Required. Username for the MySQL connection.

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

### setUsername

Required. Username for the MySQL connection.

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

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

### getPassword

Optional. Input only. Password for the MySQL connection. Mutually exclusive
with the `secret_manager_stored_password` field.

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

### setPassword

Optional. Input only. Password for the MySQL connection. Mutually exclusive
with the `secret_manager_stored_password` field.

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

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

### getSslConfig

SSL configuration for the MySQL connection.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.MysqlSslConfig|null` |   |

### hasSslConfig

### clearSslConfig

### setSslConfig

SSL configuration for the MySQL connection.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.MysqlSslConfig` |

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

### getSecretManagerStoredPassword

Optional. A reference to a Secret Manager resource name storing the MySQL
connection password. Mutually exclusive with the `password` field.

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

### setSecretManagerStoredPassword

Optional. A reference to a Secret Manager resource name storing the MySQL
connection password. Mutually exclusive with the `password` field.

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

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