host = $host; } /** * @return string */ public function getHost() { return $this->host; } /** * The password that will be used for authentication with the SMTP service. * This is a write-only field that can be specified in requests to create or * update SendAs settings; it is never populated in responses. * * @param string $password */ public function setPassword($password) { $this->password = $password; } /** * @return string */ public function getPassword() { return $this->password; } /** * The port of the SMTP service. Required. * * @param int $port */ public function setPort($port) { $this->port = $port; } /** * @return int */ public function getPort() { return $this->port; } /** * The protocol that will be used to secure communication with the SMTP * service. Required. * * Accepted values: securityModeUnspecified, none, ssl, starttls * * @param self::SECURITY_MODE_* $securityMode */ public function setSecurityMode($securityMode) { $this->securityMode = $securityMode; } /** * @return self::SECURITY_MODE_* */ public function getSecurityMode() { return $this->securityMode; } /** * The username that will be used for authentication with the SMTP service. * This is a write-only field that can be specified in requests to create or * update SendAs settings; it is never populated in responses. * * @param string $username */ public function setUsername($username) { $this->username = $username; } /** * @return string */ public function getUsername() { return $this->username; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(SmtpMsa::class, 'Google_Service_Gmail_SmtpMsa');