# DataStream v1alpha1 API - Class ForwardSshTunnelConnectivity (2.0.0-alpha06)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-alpha06 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1Alpha1/latest/Google.Cloud.Datastream.V1Alpha1.ForwardSshTunnelConnectivity)
- [2.0.0-alpha05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1Alpha1/2.0.0-alpha05/Google.Cloud.Datastream.V1Alpha1.ForwardSshTunnelConnectivity)
- [1.0.0-beta02](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1Alpha1/1.0.0-beta02/Google.Cloud.Datastream.V1Alpha1.ForwardSshTunnelConnectivity)

    public sealed class ForwardSshTunnelConnectivity : IMessage<ForwardSshTunnelConnectivity>, IEquatable<ForwardSshTunnelConnectivity>, IDeepCloneable<ForwardSshTunnelConnectivity>, IBufferMessage, IMessage

Reference documentation and code samples for the DataStream v1alpha1 API class ForwardSshTunnelConnectivity.

Forward SSH Tunnel connectivity.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ForwardSshTunnelConnectivity

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ForwardSshTunnelConnectivity](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1Alpha1/latest/Google.Cloud.Datastream.V1Alpha1.ForwardSshTunnelConnectivity), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ForwardSshTunnelConnectivity](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1Alpha1/latest/Google.Cloud.Datastream.V1Alpha1.ForwardSshTunnelConnectivity), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ForwardSshTunnelConnectivity](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1Alpha1/latest/Google.Cloud.Datastream.V1Alpha1.ForwardSshTunnelConnectivity), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Datastream.V1Alpha1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1Alpha1/latest/Google.Cloud.Datastream.V1Alpha1)

## Assembly

Google.Cloud.Datastream.V1Alpha1.dll

## Constructors

### ForwardSshTunnelConnectivity()

    public ForwardSshTunnelConnectivity()

### ForwardSshTunnelConnectivity(ForwardSshTunnelConnectivity)

    public ForwardSshTunnelConnectivity(ForwardSshTunnelConnectivity other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1Alpha1/latest/Google.Cloud.Datastream.V1Alpha1.ForwardSshTunnelConnectivity` |

## Properties

### AuthenticationMethodCase

    public ForwardSshTunnelConnectivity.AuthenticationMethodOneofCase AuthenticationMethodCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1Alpha1/latest/Google.Cloud.Datastream.V1Alpha1.ForwardSshTunnelConnectivityhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1Alpha1/latest/Google.Cloud.Datastream.V1Alpha1.ForwardSshTunnelConnectivity.AuthenticationMethodOneofCase` |   |

### HasPassword

    public bool HasPassword { get; }

Gets whether the "password" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasPrivateKey

    public bool HasPrivateKey { get; }

Gets whether the "private_key" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### Hostname

    public string Hostname { get; set; }

Required. Hostname for the SSH tunnel.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Password

    public string Password { get; set; }

Input only. SSH password.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Port

    public int Port { get; set; }

Port for the SSH tunnel, default value is 22.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### PrivateKey

    public string PrivateKey { get; set; }

Input only. SSH private key.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Username

    public string Username { get; set; }

Required. Username for the SSH tunnel.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |