aws-sdk-cloudtrail 1.104.0

AWS SDK for AWS CloudTrail
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DisableFederationInput {
    /// <p>The ARN (or ID suffix of the ARN) of the event data store for which you want to disable Lake query federation.</p>
    pub event_data_store: ::std::option::Option<::std::string::String>,
}
impl DisableFederationInput {
    /// <p>The ARN (or ID suffix of the ARN) of the event data store for which you want to disable Lake query federation.</p>
    pub fn event_data_store(&self) -> ::std::option::Option<&str> {
        self.event_data_store.as_deref()
    }
}
impl DisableFederationInput {
    /// Creates a new builder-style object to manufacture [`DisableFederationInput`](crate::operation::disable_federation::DisableFederationInput).
    pub fn builder() -> crate::operation::disable_federation::builders::DisableFederationInputBuilder {
        crate::operation::disable_federation::builders::DisableFederationInputBuilder::default()
    }
}

/// A builder for [`DisableFederationInput`](crate::operation::disable_federation::DisableFederationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DisableFederationInputBuilder {
    pub(crate) event_data_store: ::std::option::Option<::std::string::String>,
}
impl DisableFederationInputBuilder {
    /// <p>The ARN (or ID suffix of the ARN) of the event data store for which you want to disable Lake query federation.</p>
    /// This field is required.
    pub fn event_data_store(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.event_data_store = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN (or ID suffix of the ARN) of the event data store for which you want to disable Lake query federation.</p>
    pub fn set_event_data_store(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.event_data_store = input;
        self
    }
    /// <p>The ARN (or ID suffix of the ARN) of the event data store for which you want to disable Lake query federation.</p>
    pub fn get_event_data_store(&self) -> &::std::option::Option<::std::string::String> {
        &self.event_data_store
    }
    /// Consumes the builder and constructs a [`DisableFederationInput`](crate::operation::disable_federation::DisableFederationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::disable_federation::DisableFederationInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::disable_federation::DisableFederationInput {
            event_data_store: self.event_data_store,
        })
    }
}