# Datastream V1alpha1 API - Class Google::Cloud::Datastream::V1alpha1::ForwardSshTunnelConnectivity (v0.14.0)

0.14.0 (latest) 0.13.1 0.12.0 0.11.1 0.10.1 0.9.0 0.8.0 0.7.1 0.6.2 0.5.0 0.4.0 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the Datastream V1alpha1 API class Google::Cloud::Datastream::V1alpha1::ForwardSshTunnelConnectivity.

Forward SSH Tunnel connectivity.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #hostname

    def hostname() -> ::String

**Returns**

- (::String) --- Required. Hostname for the SSH tunnel.

### #hostname=

    def hostname=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Hostname for the SSH tunnel.
**Returns**

- (::String) --- Required. Hostname for the SSH tunnel.

### #password

    def password() -> ::String

**Returns**

- (::String) --- Input only. SSH password.

  Note: The following fields are mutually exclusive: `password`, `private_key`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #password=

    def password=(value) -> ::String

**Parameter**

- **value** (::String) --- Input only. SSH password.


  Note: The following fields are mutually exclusive: `password`, `private_key`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- Input only. SSH password.

  Note: The following fields are mutually exclusive: `password`, `private_key`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #port

    def port() -> ::Integer

**Returns**

- (::Integer) --- Port for the SSH tunnel, default value is 22.

### #port=

    def port=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Port for the SSH tunnel, default value is 22.
**Returns**

- (::Integer) --- Port for the SSH tunnel, default value is 22.

### #private_key

    def private_key() -> ::String

**Returns**

- (::String) --- Input only. SSH private key.

  Note: The following fields are mutually exclusive: `private_key`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #private_key=

    def private_key=(value) -> ::String

**Parameter**

- **value** (::String) --- Input only. SSH private key.


  Note: The following fields are mutually exclusive: `private_key`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- Input only. SSH private key.

  Note: The following fields are mutually exclusive: `private_key`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #username

    def username() -> ::String

**Returns**

- (::String) --- Required. Username for the SSH tunnel.

### #username=

    def username=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Username for the SSH tunnel.
**Returns**

- (::String) --- Required. Username for the SSH tunnel.