aws-sdk-securitylake 1.108.0

AWS SDK for Amazon Security Lake
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 GetSubscriberInput {
    /// <p>A value created by Amazon Security Lake that uniquely identifies your <code>GetSubscriber</code> API request.</p>
    pub subscriber_id: ::std::option::Option<::std::string::String>,
}
impl GetSubscriberInput {
    /// <p>A value created by Amazon Security Lake that uniquely identifies your <code>GetSubscriber</code> API request.</p>
    pub fn subscriber_id(&self) -> ::std::option::Option<&str> {
        self.subscriber_id.as_deref()
    }
}
impl GetSubscriberInput {
    /// Creates a new builder-style object to manufacture [`GetSubscriberInput`](crate::operation::get_subscriber::GetSubscriberInput).
    pub fn builder() -> crate::operation::get_subscriber::builders::GetSubscriberInputBuilder {
        crate::operation::get_subscriber::builders::GetSubscriberInputBuilder::default()
    }
}

/// A builder for [`GetSubscriberInput`](crate::operation::get_subscriber::GetSubscriberInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetSubscriberInputBuilder {
    pub(crate) subscriber_id: ::std::option::Option<::std::string::String>,
}
impl GetSubscriberInputBuilder {
    /// <p>A value created by Amazon Security Lake that uniquely identifies your <code>GetSubscriber</code> API request.</p>
    /// This field is required.
    pub fn subscriber_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.subscriber_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A value created by Amazon Security Lake that uniquely identifies your <code>GetSubscriber</code> API request.</p>
    pub fn set_subscriber_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.subscriber_id = input;
        self
    }
    /// <p>A value created by Amazon Security Lake that uniquely identifies your <code>GetSubscriber</code> API request.</p>
    pub fn get_subscriber_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.subscriber_id
    }
    /// Consumes the builder and constructs a [`GetSubscriberInput`](crate::operation::get_subscriber::GetSubscriberInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_subscriber::GetSubscriberInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_subscriber::GetSubscriberInput {
            subscriber_id: self.subscriber_id,
        })
    }
}