1.7.1 (latest) 1.7.0 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 SslConfig.

SSL configuration.

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

## Namespace

Google \\ Cloud \\ AlloyDb \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ ssl_mode` | `int` Optional. SSL mode. Specifies client-server SSL/TLS connection behavior. |
| `↳ ca_source` | `int` Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is supported currently, and is the default value. |

### getSslMode

Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [SslMode](https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.SslConfig.SslMode). |

### setSslMode

Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [SslMode](https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.SslConfig.SslMode). |

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

### getCaSource

Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is
supported currently, and is the default value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [CaSource](https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.SslConfig.CaSource). |

### setCaSource

Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is
supported currently, and is the default value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [CaSource](https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.SslConfig.CaSource). |

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