#[non_exhaustive]pub struct PostgreSqlConnectionProfile {
pub host: String,
pub port: i32,
pub username: String,
pub password: String,
pub password_set: bool,
pub ssl: Option<SslConfig>,
pub cloud_sql_id: String,
pub network_architecture: NetworkArchitecture,
pub connectivity: Option<Connectivity>,
/* private fields */
}Expand description
Specifies connection parameters required specifically for PostgreSQL databases.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.host: StringRequired. The IP or hostname of the source PostgreSQL database.
port: i32Required. The network port of the source PostgreSQL database.
username: StringRequired. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.
password: StringRequired. Input only. The password for the user that Database Migration Service will be using to connect to the database. This field is not returned on request, and the value is encrypted when stored in Database Migration Service.
password_set: boolOutput only. Indicates If this connection profile password is stored.
ssl: Option<SslConfig>SSL configuration for the destination to connect to the source database.
cloud_sql_id: StringIf the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
network_architecture: NetworkArchitectureOutput only. If the source is a Cloud SQL database, this field indicates the network architecture it’s associated with.
connectivity: Option<Connectivity>Connectivity options used to establish a connection to the database server.
Implementations§
Source§impl PostgreSqlConnectionProfile
impl PostgreSqlConnectionProfile
pub fn new() -> Self
Sourcepub fn set_username<T: Into<String>>(self, v: T) -> Self
pub fn set_username<T: Into<String>>(self, v: T) -> Self
Sets the value of username.
Sourcepub fn set_password<T: Into<String>>(self, v: T) -> Self
pub fn set_password<T: Into<String>>(self, v: T) -> Self
Sets the value of password.
Sourcepub fn set_password_set<T: Into<bool>>(self, v: T) -> Self
pub fn set_password_set<T: Into<bool>>(self, v: T) -> Self
Sets the value of password_set.
Sourcepub fn set_or_clear_ssl<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_ssl<T>(self, v: Option<T>) -> Self
Sets or clears the value of ssl.
Sourcepub fn set_cloud_sql_id<T: Into<String>>(self, v: T) -> Self
pub fn set_cloud_sql_id<T: Into<String>>(self, v: T) -> Self
Sets the value of cloud_sql_id.
Sourcepub fn set_network_architecture<T: Into<NetworkArchitecture>>(
self,
v: T,
) -> Self
pub fn set_network_architecture<T: Into<NetworkArchitecture>>( self, v: T, ) -> Self
Sets the value of network_architecture.
Sourcepub fn set_connectivity<T: Into<Option<Connectivity>>>(self, v: T) -> Self
pub fn set_connectivity<T: Into<Option<Connectivity>>>(self, v: T) -> Self
Sets the value of connectivity.
Note that all the setters affecting connectivity are mutually
exclusive.
Sourcepub fn static_ip_connectivity(&self) -> Option<&Box<StaticIpConnectivity>>
pub fn static_ip_connectivity(&self) -> Option<&Box<StaticIpConnectivity>>
The value of connectivity
if it holds a StaticIpConnectivity, None if the field is not set or
holds a different branch.
Sourcepub fn set_static_ip_connectivity<T: Into<Box<StaticIpConnectivity>>>(
self,
v: T,
) -> Self
pub fn set_static_ip_connectivity<T: Into<Box<StaticIpConnectivity>>>( self, v: T, ) -> Self
Sets the value of connectivity
to hold a StaticIpConnectivity.
Note that all the setters affecting connectivity are
mutually exclusive.
Sourcepub fn private_service_connect_connectivity(
&self,
) -> Option<&Box<PrivateServiceConnectConnectivity>>
pub fn private_service_connect_connectivity( &self, ) -> Option<&Box<PrivateServiceConnectConnectivity>>
The value of connectivity
if it holds a PrivateServiceConnectConnectivity, None if the field is not set or
holds a different branch.
Sourcepub fn set_private_service_connect_connectivity<T: Into<Box<PrivateServiceConnectConnectivity>>>(
self,
v: T,
) -> Self
pub fn set_private_service_connect_connectivity<T: Into<Box<PrivateServiceConnectConnectivity>>>( self, v: T, ) -> Self
Sets the value of connectivity
to hold a PrivateServiceConnectConnectivity.
Note that all the setters affecting connectivity are
mutually exclusive.
Trait Implementations§
Source§impl Clone for PostgreSqlConnectionProfile
impl Clone for PostgreSqlConnectionProfile
Source§fn clone(&self) -> PostgreSqlConnectionProfile
fn clone(&self) -> PostgreSqlConnectionProfile
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more