pub struct TestConnectionFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to TestConnection.
Tests a connection to a service to validate the service credentials that you provide.
You can either provide an existing connection name or a TestConnectionInput for testing a non-existing connection input. Providing both at the same time will cause an error.
If the action is successful, the service sends back an HTTP 200 response.
Implementations§
Source§impl TestConnectionFluentBuilder
impl TestConnectionFluentBuilder
Sourcepub fn as_input(&self) -> &TestConnectionInputBuilder
pub fn as_input(&self) -> &TestConnectionInputBuilder
Access the TestConnection as a reference.
Sourcepub async fn send(
self,
) -> Result<TestConnectionOutput, SdkError<TestConnectionError, HttpResponse>>
pub async fn send( self, ) -> Result<TestConnectionOutput, SdkError<TestConnectionError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
Sourcepub fn customize(
self,
) -> CustomizableOperation<TestConnectionOutput, TestConnectionError, Self>
pub fn customize( self, ) -> CustomizableOperation<TestConnectionOutput, TestConnectionError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
Sourcepub fn connection_name(self, input: impl Into<String>) -> Self
pub fn connection_name(self, input: impl Into<String>) -> Self
Optional. The name of the connection to test. If only name is provided, the operation will get the connection and use that for testing.
Sourcepub fn set_connection_name(self, input: Option<String>) -> Self
pub fn set_connection_name(self, input: Option<String>) -> Self
Optional. The name of the connection to test. If only name is provided, the operation will get the connection and use that for testing.
Sourcepub fn get_connection_name(&self) -> &Option<String>
pub fn get_connection_name(&self) -> &Option<String>
Optional. The name of the connection to test. If only name is provided, the operation will get the connection and use that for testing.
Sourcepub fn catalog_id(self, input: impl Into<String>) -> Self
pub fn catalog_id(self, input: impl Into<String>) -> Self
The catalog ID where the connection resides.
Sourcepub fn set_catalog_id(self, input: Option<String>) -> Self
pub fn set_catalog_id(self, input: Option<String>) -> Self
The catalog ID where the connection resides.
Sourcepub fn get_catalog_id(&self) -> &Option<String>
pub fn get_catalog_id(&self) -> &Option<String>
The catalog ID where the connection resides.
Sourcepub fn test_connection_input(self, input: TestConnectionInput) -> Self
pub fn test_connection_input(self, input: TestConnectionInput) -> Self
A structure that is used to specify testing a connection to a service.
Sourcepub fn set_test_connection_input(
self,
input: Option<TestConnectionInput>,
) -> Self
pub fn set_test_connection_input( self, input: Option<TestConnectionInput>, ) -> Self
A structure that is used to specify testing a connection to a service.
Sourcepub fn get_test_connection_input(&self) -> &Option<TestConnectionInput>
pub fn get_test_connection_input(&self) -> &Option<TestConnectionInput>
A structure that is used to specify testing a connection to a service.
Trait Implementations§
Source§impl Clone for TestConnectionFluentBuilder
impl Clone for TestConnectionFluentBuilder
Source§fn clone(&self) -> TestConnectionFluentBuilder
fn clone(&self) -> TestConnectionFluentBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for TestConnectionFluentBuilder
impl !RefUnwindSafe for TestConnectionFluentBuilder
impl Send for TestConnectionFluentBuilder
impl Sync for TestConnectionFluentBuilder
impl Unpin for TestConnectionFluentBuilder
impl UnsafeUnpin for TestConnectionFluentBuilder
impl !UnwindSafe for TestConnectionFluentBuilder
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