#[non_exhaustive]pub struct TestConnectionInputBuilder { /* private fields */ }Expand description
A builder for TestConnectionInput.
Implementations§
Source§impl TestConnectionInputBuilder
impl TestConnectionInputBuilder
Sourcepub fn connection_type(self, input: ConnectionType) -> Self
pub fn connection_type(self, input: ConnectionType) -> Self
The type of connection to test. This operation is only available for the JDBC or SALESFORCE connection types.
Sourcepub fn set_connection_type(self, input: Option<ConnectionType>) -> Self
pub fn set_connection_type(self, input: Option<ConnectionType>) -> Self
The type of connection to test. This operation is only available for the JDBC or SALESFORCE connection types.
Sourcepub fn get_connection_type(&self) -> &Option<ConnectionType>
pub fn get_connection_type(&self) -> &Option<ConnectionType>
The type of connection to test. This operation is only available for the JDBC or SALESFORCE connection types.
Sourcepub fn connection_properties(
self,
k: ConnectionPropertyKey,
v: impl Into<String>,
) -> Self
pub fn connection_properties( self, k: ConnectionPropertyKey, v: impl Into<String>, ) -> Self
Adds a key-value pair to connection_properties.
To override the contents of this collection use set_connection_properties.
The key-value pairs that define parameters for the connection.
JDBC connections use the following connection properties:
-
Required: All of (
HOST,PORT,JDBC_ENGINE) orJDBC_CONNECTION_URL. -
Required: All of (
USERNAME,PASSWORD) orSECRET_ID. -
Optional:
JDBC_ENFORCE_SSL,CUSTOM_JDBC_CERT,CUSTOM_JDBC_CERT_STRING,SKIP_CUSTOM_JDBC_CERT_VALIDATION. These parameters are used to configure SSL with JDBC.
SALESFORCE connections require the AuthenticationConfiguration member to be configured.
Sourcepub fn set_connection_properties(
self,
input: Option<HashMap<ConnectionPropertyKey, String>>,
) -> Self
pub fn set_connection_properties( self, input: Option<HashMap<ConnectionPropertyKey, String>>, ) -> Self
The key-value pairs that define parameters for the connection.
JDBC connections use the following connection properties:
-
Required: All of (
HOST,PORT,JDBC_ENGINE) orJDBC_CONNECTION_URL. -
Required: All of (
USERNAME,PASSWORD) orSECRET_ID. -
Optional:
JDBC_ENFORCE_SSL,CUSTOM_JDBC_CERT,CUSTOM_JDBC_CERT_STRING,SKIP_CUSTOM_JDBC_CERT_VALIDATION. These parameters are used to configure SSL with JDBC.
SALESFORCE connections require the AuthenticationConfiguration member to be configured.
Sourcepub fn get_connection_properties(
&self,
) -> &Option<HashMap<ConnectionPropertyKey, String>>
pub fn get_connection_properties( &self, ) -> &Option<HashMap<ConnectionPropertyKey, String>>
The key-value pairs that define parameters for the connection.
JDBC connections use the following connection properties:
-
Required: All of (
HOST,PORT,JDBC_ENGINE) orJDBC_CONNECTION_URL. -
Required: All of (
USERNAME,PASSWORD) orSECRET_ID. -
Optional:
JDBC_ENFORCE_SSL,CUSTOM_JDBC_CERT,CUSTOM_JDBC_CERT_STRING,SKIP_CUSTOM_JDBC_CERT_VALIDATION. These parameters are used to configure SSL with JDBC.
SALESFORCE connections require the AuthenticationConfiguration member to be configured.
Sourcepub fn authentication_configuration(
self,
input: AuthenticationConfigurationInput,
) -> Self
pub fn authentication_configuration( self, input: AuthenticationConfigurationInput, ) -> Self
A structure containing the authentication configuration in the TestConnection request. Required for a connection to Salesforce using OAuth authentication.
Sourcepub fn set_authentication_configuration(
self,
input: Option<AuthenticationConfigurationInput>,
) -> Self
pub fn set_authentication_configuration( self, input: Option<AuthenticationConfigurationInput>, ) -> Self
A structure containing the authentication configuration in the TestConnection request. Required for a connection to Salesforce using OAuth authentication.
Sourcepub fn get_authentication_configuration(
&self,
) -> &Option<AuthenticationConfigurationInput>
pub fn get_authentication_configuration( &self, ) -> &Option<AuthenticationConfigurationInput>
A structure containing the authentication configuration in the TestConnection request. Required for a connection to Salesforce using OAuth authentication.
Sourcepub fn build(self) -> Result<TestConnectionInput, BuildError>
pub fn build(self) -> Result<TestConnectionInput, BuildError>
Consumes the builder and constructs a TestConnectionInput.
This method will fail if any of the following fields are not set:
Trait Implementations§
Source§impl Clone for TestConnectionInputBuilder
impl Clone for TestConnectionInputBuilder
Source§fn clone(&self) -> TestConnectionInputBuilder
fn clone(&self) -> TestConnectionInputBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TestConnectionInputBuilder
impl Debug for TestConnectionInputBuilder
Source§impl Default for TestConnectionInputBuilder
impl Default for TestConnectionInputBuilder
Source§fn default() -> TestConnectionInputBuilder
fn default() -> TestConnectionInputBuilder
Source§impl PartialEq for TestConnectionInputBuilder
impl PartialEq for TestConnectionInputBuilder
Source§fn eq(&self, other: &TestConnectionInputBuilder) -> bool
fn eq(&self, other: &TestConnectionInputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TestConnectionInputBuilder
Auto Trait Implementations§
impl Freeze for TestConnectionInputBuilder
impl RefUnwindSafe for TestConnectionInputBuilder
impl Send for TestConnectionInputBuilder
impl Sync for TestConnectionInputBuilder
impl Unpin for TestConnectionInputBuilder
impl UnsafeUnpin for TestConnectionInputBuilder
impl UnwindSafe for TestConnectionInputBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more