aws_sdk_workmail/client/
create_availability_configuration.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateAvailabilityConfiguration`](crate::operation::create_availability_configuration::builders::CreateAvailabilityConfigurationFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_availability_configuration::builders::CreateAvailabilityConfigurationFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_availability_configuration::builders::CreateAvailabilityConfigurationFluentBuilder::set_client_token):<br>required: **false**<br><p>An idempotent token that ensures that an API request is executed only once.</p><br>
    ///   - [`organization_id(impl Into<String>)`](crate::operation::create_availability_configuration::builders::CreateAvailabilityConfigurationFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::create_availability_configuration::builders::CreateAvailabilityConfigurationFluentBuilder::set_organization_id):<br>required: **true**<br><p>The WorkMail organization for which the <code>AvailabilityConfiguration</code> will be created.</p><br>
    ///   - [`domain_name(impl Into<String>)`](crate::operation::create_availability_configuration::builders::CreateAvailabilityConfigurationFluentBuilder::domain_name) / [`set_domain_name(Option<String>)`](crate::operation::create_availability_configuration::builders::CreateAvailabilityConfigurationFluentBuilder::set_domain_name):<br>required: **true**<br><p>The domain to which the provider applies.</p><br>
    ///   - [`ews_provider(EwsAvailabilityProvider)`](crate::operation::create_availability_configuration::builders::CreateAvailabilityConfigurationFluentBuilder::ews_provider) / [`set_ews_provider(Option<EwsAvailabilityProvider>)`](crate::operation::create_availability_configuration::builders::CreateAvailabilityConfigurationFluentBuilder::set_ews_provider):<br>required: **false**<br><p>Exchange Web Services (EWS) availability provider definition. The request must contain exactly one provider definition, either <code>EwsProvider</code> or <code>LambdaProvider</code>.</p><br>
    ///   - [`lambda_provider(LambdaAvailabilityProvider)`](crate::operation::create_availability_configuration::builders::CreateAvailabilityConfigurationFluentBuilder::lambda_provider) / [`set_lambda_provider(Option<LambdaAvailabilityProvider>)`](crate::operation::create_availability_configuration::builders::CreateAvailabilityConfigurationFluentBuilder::set_lambda_provider):<br>required: **false**<br><p>Lambda availability provider definition. The request must contain exactly one provider definition, either <code>EwsProvider</code> or <code>LambdaProvider</code>.</p><br>
    /// - On success, responds with [`CreateAvailabilityConfigurationOutput`](crate::operation::create_availability_configuration::CreateAvailabilityConfigurationOutput)
    /// - On failure, responds with [`SdkError<CreateAvailabilityConfigurationError>`](crate::operation::create_availability_configuration::CreateAvailabilityConfigurationError)
    pub fn create_availability_configuration(
        &self,
    ) -> crate::operation::create_availability_configuration::builders::CreateAvailabilityConfigurationFluentBuilder {
        crate::operation::create_availability_configuration::builders::CreateAvailabilityConfigurationFluentBuilder::new(self.handle.clone())
    }
}