Google Cloud Datastream V1 Client - Class MysqlProfile (1.4.2)

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
NameDescription
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

Required. Input only. Password for the MySQL connection.

↳ ssl_config Google\Cloud\Datastream\V1\MysqlSslConfig

SSL configuration for the MySQL connection.

getHostname

Required. Hostname for the MySQL connection.

Returns
TypeDescription
string

setHostname

Required. Hostname for the MySQL connection.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPort

Port for the MySQL connection, default value is 3306.

Returns
TypeDescription
int

setPort

Port for the MySQL connection, default value is 3306.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getUsername

Required. Username for the MySQL connection.

Returns
TypeDescription
string

setUsername

Required. Username for the MySQL connection.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPassword

Required. Input only. Password for the MySQL connection.

Returns
TypeDescription
string

setPassword

Required. Input only. Password for the MySQL connection.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSslConfig

SSL configuration for the MySQL connection.

Returns
TypeDescription
Google\Cloud\Datastream\V1\MysqlSslConfig|null

hasSslConfig

clearSslConfig

setSslConfig

SSL configuration for the MySQL connection.

Parameter
NameDescription
var Google\Cloud\Datastream\V1\MysqlSslConfig
Returns
TypeDescription
$this