Struct aws_sdk_workmail::operation::test_availability_configuration::builders::TestAvailabilityConfigurationFluentBuilder
source · pub struct TestAvailabilityConfigurationFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to TestAvailabilityConfiguration
.
Performs a test on an availability provider to ensure that access is allowed. For EWS, it verifies the provided credentials can be used to successfully log in. For Lambda, it verifies that the Lambda function can be invoked and that the resource access policy was configured to deny anonymous access. An anonymous invocation is one done without providing either a SourceArn
or SourceAccount
header.
The request must contain either one provider definition (EwsProvider
or LambdaProvider
) or the DomainName
parameter. If the DomainName
parameter is provided, the configuration stored under the DomainName
will be tested.
Implementations§
source§impl TestAvailabilityConfigurationFluentBuilder
impl TestAvailabilityConfigurationFluentBuilder
sourcepub fn as_input(&self) -> &TestAvailabilityConfigurationInputBuilder
pub fn as_input(&self) -> &TestAvailabilityConfigurationInputBuilder
Access the TestAvailabilityConfiguration as a reference.
sourcepub async fn send(
self
) -> Result<TestAvailabilityConfigurationOutput, SdkError<TestAvailabilityConfigurationError, HttpResponse>>
pub async fn send( self ) -> Result<TestAvailabilityConfigurationOutput, SdkError<TestAvailabilityConfigurationError, 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<TestAvailabilityConfigurationOutput, TestAvailabilityConfigurationError, Self>
pub fn customize( self ) -> CustomizableOperation<TestAvailabilityConfigurationOutput, TestAvailabilityConfigurationError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn organization_id(self, input: impl Into<String>) -> Self
pub fn organization_id(self, input: impl Into<String>) -> Self
The WorkMail organization where the availability provider will be tested.
sourcepub fn set_organization_id(self, input: Option<String>) -> Self
pub fn set_organization_id(self, input: Option<String>) -> Self
The WorkMail organization where the availability provider will be tested.
sourcepub fn get_organization_id(&self) -> &Option<String>
pub fn get_organization_id(&self) -> &Option<String>
The WorkMail organization where the availability provider will be tested.
sourcepub fn domain_name(self, input: impl Into<String>) -> Self
pub fn domain_name(self, input: impl Into<String>) -> Self
The domain to which the provider applies. If this field is provided, a stored availability provider associated to this domain name will be tested.
sourcepub fn set_domain_name(self, input: Option<String>) -> Self
pub fn set_domain_name(self, input: Option<String>) -> Self
The domain to which the provider applies. If this field is provided, a stored availability provider associated to this domain name will be tested.
sourcepub fn get_domain_name(&self) -> &Option<String>
pub fn get_domain_name(&self) -> &Option<String>
The domain to which the provider applies. If this field is provided, a stored availability provider associated to this domain name will be tested.
sourcepub fn ews_provider(self, input: EwsAvailabilityProvider) -> Self
pub fn ews_provider(self, input: EwsAvailabilityProvider) -> Self
Describes an EWS based availability provider. This is only used as input to the service.
sourcepub fn set_ews_provider(self, input: Option<EwsAvailabilityProvider>) -> Self
pub fn set_ews_provider(self, input: Option<EwsAvailabilityProvider>) -> Self
Describes an EWS based availability provider. This is only used as input to the service.
sourcepub fn get_ews_provider(&self) -> &Option<EwsAvailabilityProvider>
pub fn get_ews_provider(&self) -> &Option<EwsAvailabilityProvider>
Describes an EWS based availability provider. This is only used as input to the service.
sourcepub fn lambda_provider(self, input: LambdaAvailabilityProvider) -> Self
pub fn lambda_provider(self, input: LambdaAvailabilityProvider) -> Self
Describes a Lambda based availability provider.
sourcepub fn set_lambda_provider(
self,
input: Option<LambdaAvailabilityProvider>
) -> Self
pub fn set_lambda_provider( self, input: Option<LambdaAvailabilityProvider> ) -> Self
Describes a Lambda based availability provider.
sourcepub fn get_lambda_provider(&self) -> &Option<LambdaAvailabilityProvider>
pub fn get_lambda_provider(&self) -> &Option<LambdaAvailabilityProvider>
Describes a Lambda based availability provider.
Trait Implementations§
source§impl Clone for TestAvailabilityConfigurationFluentBuilder
impl Clone for TestAvailabilityConfigurationFluentBuilder
source§fn clone(&self) -> TestAvailabilityConfigurationFluentBuilder
fn clone(&self) -> TestAvailabilityConfigurationFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for TestAvailabilityConfigurationFluentBuilder
impl !RefUnwindSafe for TestAvailabilityConfigurationFluentBuilder
impl Send for TestAvailabilityConfigurationFluentBuilder
impl Sync for TestAvailabilityConfigurationFluentBuilder
impl Unpin for TestAvailabilityConfigurationFluentBuilder
impl !UnwindSafe for TestAvailabilityConfigurationFluentBuilder
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> 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