#[non_exhaustive]pub struct CloudSqlConnectionProfile {
pub cloud_sql_id: String,
pub settings: Option<CloudSqlSettings>,
pub private_ip: String,
pub public_ip: String,
pub additional_public_ip: String,
/* private fields */
}Expand description
Specifies required connection parameters, and, optionally, the parameters required to create a Cloud SQL destination database instance.
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.cloud_sql_id: StringOutput only. The Cloud SQL instance ID that this connection profile is associated with.
settings: Option<CloudSqlSettings>Immutable. Metadata used to create the destination Cloud SQL database.
private_ip: StringOutput only. The Cloud SQL database instance’s private IP.
public_ip: StringOutput only. The Cloud SQL database instance’s public IP.
additional_public_ip: StringOutput only. The Cloud SQL database instance’s additional (outgoing) public IP. Used when the Cloud SQL database availability type is REGIONAL (i.e. multiple zones / highly available).
Implementations§
Source§impl CloudSqlConnectionProfile
impl CloudSqlConnectionProfile
pub fn new() -> Self
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_settings<T>(self, v: T) -> Selfwhere
T: Into<CloudSqlSettings>,
pub fn set_settings<T>(self, v: T) -> Selfwhere
T: Into<CloudSqlSettings>,
Sets the value of settings.
Sourcepub fn set_or_clear_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudSqlSettings>,
pub fn set_or_clear_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudSqlSettings>,
Sets or clears the value of settings.
Sourcepub fn set_private_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_private_ip<T: Into<String>>(self, v: T) -> Self
Sets the value of private_ip.
Sourcepub fn set_public_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_public_ip<T: Into<String>>(self, v: T) -> Self
Sets the value of public_ip.
Sourcepub fn set_additional_public_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_additional_public_ip<T: Into<String>>(self, v: T) -> Self
Sets the value of additional_public_ip.
Trait Implementations§
Source§impl Clone for CloudSqlConnectionProfile
impl Clone for CloudSqlConnectionProfile
Source§fn clone(&self) -> CloudSqlConnectionProfile
fn clone(&self) -> CloudSqlConnectionProfile
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more