#[non_exhaustive]pub struct DatabaseConnectionStringProfile {
pub consumer_group: ConsumerGroup,
pub display_name: String,
pub host_format: HostFormat,
pub is_regional: bool,
pub protocol: Protocol,
pub session_mode: SessionMode,
pub syntax_format: SyntaxFormat,
pub tls_authentication: TLSAuthentication,
pub value: String,
/* private fields */
}Expand description
The connection string profile to allow clients to group. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DatabaseConnectionStringProfile
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.consumer_group: ConsumerGroupOutput only. The current consumer group being used by the connection.
display_name: StringOutput only. The display name for the database connection.
host_format: HostFormatOutput only. The host name format being currently used in connection string.
is_regional: boolOutput only. This field indicates if the connection string is regional and is only applicable for cross-region Data Guard.
protocol: ProtocolOutput only. The protocol being used by the connection.
session_mode: SessionModeOutput only. The current session mode of the connection.
syntax_format: SyntaxFormatOutput only. The syntax of the connection string.
tls_authentication: TLSAuthenticationOutput only. This field indicates the TLS authentication type of the connection.
value: StringOutput only. The value of the connection string.
Implementations§
Source§impl DatabaseConnectionStringProfile
impl DatabaseConnectionStringProfile
pub fn new() -> Self
Sourcepub fn set_consumer_group<T: Into<ConsumerGroup>>(self, v: T) -> Self
pub fn set_consumer_group<T: Into<ConsumerGroup>>(self, v: T) -> Self
Sets the value of consumer_group.
§Example
use google_cloud_oracledatabase_v1::model::database_connection_string_profile::ConsumerGroup;
let x0 = DatabaseConnectionStringProfile::new().set_consumer_group(ConsumerGroup::High);
let x1 = DatabaseConnectionStringProfile::new().set_consumer_group(ConsumerGroup::Medium);
let x2 = DatabaseConnectionStringProfile::new().set_consumer_group(ConsumerGroup::Low);Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
§Example
let x = DatabaseConnectionStringProfile::new().set_display_name("example");Sourcepub fn set_host_format<T: Into<HostFormat>>(self, v: T) -> Self
pub fn set_host_format<T: Into<HostFormat>>(self, v: T) -> Self
Sets the value of host_format.
§Example
use google_cloud_oracledatabase_v1::model::database_connection_string_profile::HostFormat;
let x0 = DatabaseConnectionStringProfile::new().set_host_format(HostFormat::Fqdn);
let x1 = DatabaseConnectionStringProfile::new().set_host_format(HostFormat::Ip);Sourcepub fn set_is_regional<T: Into<bool>>(self, v: T) -> Self
pub fn set_is_regional<T: Into<bool>>(self, v: T) -> Self
Sets the value of is_regional.
§Example
let x = DatabaseConnectionStringProfile::new().set_is_regional(true);Sourcepub fn set_protocol<T: Into<Protocol>>(self, v: T) -> Self
pub fn set_protocol<T: Into<Protocol>>(self, v: T) -> Self
Sourcepub fn set_session_mode<T: Into<SessionMode>>(self, v: T) -> Self
pub fn set_session_mode<T: Into<SessionMode>>(self, v: T) -> Self
Sets the value of session_mode.
§Example
use google_cloud_oracledatabase_v1::model::database_connection_string_profile::SessionMode;
let x0 = DatabaseConnectionStringProfile::new().set_session_mode(SessionMode::Direct);
let x1 = DatabaseConnectionStringProfile::new().set_session_mode(SessionMode::Indirect);Sourcepub fn set_syntax_format<T: Into<SyntaxFormat>>(self, v: T) -> Self
pub fn set_syntax_format<T: Into<SyntaxFormat>>(self, v: T) -> Self
Sets the value of syntax_format.
§Example
use google_cloud_oracledatabase_v1::model::database_connection_string_profile::SyntaxFormat;
let x0 = DatabaseConnectionStringProfile::new().set_syntax_format(SyntaxFormat::Long);
let x1 = DatabaseConnectionStringProfile::new().set_syntax_format(SyntaxFormat::Ezconnect);
let x2 = DatabaseConnectionStringProfile::new().set_syntax_format(SyntaxFormat::Ezconnectplus);Sourcepub fn set_tls_authentication<T: Into<TLSAuthentication>>(self, v: T) -> Self
pub fn set_tls_authentication<T: Into<TLSAuthentication>>(self, v: T) -> Self
Sets the value of tls_authentication.
§Example
use google_cloud_oracledatabase_v1::model::database_connection_string_profile::TLSAuthentication;
let x0 = DatabaseConnectionStringProfile::new().set_tls_authentication(TLSAuthentication::Server);
let x1 = DatabaseConnectionStringProfile::new().set_tls_authentication(TLSAuthentication::Mutual);Trait Implementations§
Source§impl Clone for DatabaseConnectionStringProfile
impl Clone for DatabaseConnectionStringProfile
Source§fn clone(&self) -> DatabaseConnectionStringProfile
fn clone(&self) -> DatabaseConnectionStringProfile
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for DatabaseConnectionStringProfile
impl Default for DatabaseConnectionStringProfile
Source§fn default() -> DatabaseConnectionStringProfile
fn default() -> DatabaseConnectionStringProfile
Source§impl PartialEq for DatabaseConnectionStringProfile
impl PartialEq for DatabaseConnectionStringProfile
Source§fn eq(&self, other: &DatabaseConnectionStringProfile) -> bool
fn eq(&self, other: &DatabaseConnectionStringProfile) -> bool
self and other values to be equal, and is used by ==.