# Google Cloud Datastream V1 Client - Class MongodbSslConfig (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 MongodbSslConfig.

MongoDB SSL configuration information.

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

## Namespace

Google \\ Cloud \\ Datastream \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ client_key` | `string` Optional. Input only. PEM-encoded private key associated with the Client Certificate. If this field is used then the 'client_certificate' and the 'ca_certificate' fields are mandatory. |
| `↳ client_key_set` | `bool` Output only. Indicates whether the client_key field is set. |
| `↳ client_certificate` | `string` Optional. Input only. PEM-encoded certificate that will be used by the replica to authenticate against the source database server. If this field is used then the 'client_key' and the 'ca_certificate' fields are mandatory. |
| `↳ client_certificate_set` | `bool` Output only. Indicates whether the client_certificate field is set. |
| `↳ ca_certificate` | `string` Optional. Input only. PEM-encoded certificate of the CA that signed the source database server's certificate. |
| `↳ ca_certificate_set` | `bool` Output only. Indicates whether the ca_certificate field is set. |
| `↳ secret_manager_stored_client_key` | `string` Optional. Input only. A reference to a Secret Manager resource name storing the PEM-encoded private key associated with the Client Certificate. If this field is used then the 'client_certificate' and the 'ca_certificate' fields are mandatory. Mutually exclusive with the `client_key` field. |

### getClientKey

Optional. Input only. PEM-encoded private key associated with the Client
Certificate. If this field is used then the 'client_certificate' and the
'ca_certificate' fields are mandatory.

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

### setClientKey

Optional. Input only. PEM-encoded private key associated with the Client
Certificate. If this field is used then the 'client_certificate' and the
'ca_certificate' fields are mandatory.

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

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

### getClientKeySet

Output only. Indicates whether the client_key field is set.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setClientKeySet

Output only. Indicates whether the client_key field is set.

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

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

### getClientCertificate

Optional. Input only. PEM-encoded certificate that will be used by the
replica to authenticate against the source database server. If this field
is used then the 'client_key' and the 'ca_certificate' fields are
mandatory.

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

### setClientCertificate

Optional. Input only. PEM-encoded certificate that will be used by the
replica to authenticate against the source database server. If this field
is used then the 'client_key' and the 'ca_certificate' fields are
mandatory.

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

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

### getClientCertificateSet

Output only. Indicates whether the client_certificate field is set.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setClientCertificateSet

Output only. Indicates whether the client_certificate field is set.

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

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

### getCaCertificate

Optional. Input only. PEM-encoded certificate of the CA that signed the
source database server's certificate.

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

### setCaCertificate

Optional. Input only. PEM-encoded certificate of the CA that signed the
source database server's certificate.

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

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

### getCaCertificateSet

Output only. Indicates whether the ca_certificate field is set.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setCaCertificateSet

Output only. Indicates whether the ca_certificate field is set.

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

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

### getSecretManagerStoredClientKey

Optional. Input only. A reference to a Secret Manager resource name storing
the PEM-encoded private key associated with the Client Certificate. If this
field is used then the 'client_certificate' and the 'ca_certificate' fields
are mandatory. Mutually exclusive with the `client_key` field.

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

### setSecretManagerStoredClientKey

Optional. Input only. A reference to a Secret Manager resource name storing
the PEM-encoded private key associated with the Client Certificate. If this
field is used then the 'client_certificate' and the 'ca_certificate' fields
are mandatory. Mutually exclusive with the `client_key` field.

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

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