aws-sdk-omics 1.99.0

AWS SDK for Amazon Omics
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 ListReferencesInput {
    /// <p>The references' reference store ID.</p>
    pub reference_store_id: ::std::option::Option<::std::string::String>,
    /// <p>The maximum number of references to return in one page of results.</p>
    pub max_results: ::std::option::Option<i32>,
    /// <p>Specify the pagination token from a previous request to retrieve the next page of results.</p>
    pub next_token: ::std::option::Option<::std::string::String>,
    /// <p>A filter to apply to the list.</p>
    pub filter: ::std::option::Option<crate::types::ReferenceFilter>,
}
impl ListReferencesInput {
    /// <p>The references' reference store ID.</p>
    pub fn reference_store_id(&self) -> ::std::option::Option<&str> {
        self.reference_store_id.as_deref()
    }
    /// <p>The maximum number of references to return in one page of results.</p>
    pub fn max_results(&self) -> ::std::option::Option<i32> {
        self.max_results
    }
    /// <p>Specify the pagination token from a previous request to retrieve the next page of results.</p>
    pub fn next_token(&self) -> ::std::option::Option<&str> {
        self.next_token.as_deref()
    }
    /// <p>A filter to apply to the list.</p>
    pub fn filter(&self) -> ::std::option::Option<&crate::types::ReferenceFilter> {
        self.filter.as_ref()
    }
}
impl ListReferencesInput {
    /// Creates a new builder-style object to manufacture [`ListReferencesInput`](crate::operation::list_references::ListReferencesInput).
    pub fn builder() -> crate::operation::list_references::builders::ListReferencesInputBuilder {
        crate::operation::list_references::builders::ListReferencesInputBuilder::default()
    }
}

/// A builder for [`ListReferencesInput`](crate::operation::list_references::ListReferencesInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListReferencesInputBuilder {
    pub(crate) reference_store_id: ::std::option::Option<::std::string::String>,
    pub(crate) max_results: ::std::option::Option<i32>,
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
    pub(crate) filter: ::std::option::Option<crate::types::ReferenceFilter>,
}
impl ListReferencesInputBuilder {
    /// <p>The references' reference store ID.</p>
    /// This field is required.
    pub fn reference_store_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.reference_store_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The references' reference store ID.</p>
    pub fn set_reference_store_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.reference_store_id = input;
        self
    }
    /// <p>The references' reference store ID.</p>
    pub fn get_reference_store_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.reference_store_id
    }
    /// <p>The maximum number of references to return in one page of results.</p>
    pub fn max_results(mut self, input: i32) -> Self {
        self.max_results = ::std::option::Option::Some(input);
        self
    }
    /// <p>The maximum number of references to return in one page of results.</p>
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
        self.max_results = input;
        self
    }
    /// <p>The maximum number of references to return in one page of results.</p>
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
        &self.max_results
    }
    /// <p>Specify the pagination token from a previous request to retrieve the next page of results.</p>
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.next_token = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Specify the pagination token from a previous request to retrieve the next page of results.</p>
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.next_token = input;
        self
    }
    /// <p>Specify the pagination token from a previous request to retrieve the next page of results.</p>
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.next_token
    }
    /// <p>A filter to apply to the list.</p>
    pub fn filter(mut self, input: crate::types::ReferenceFilter) -> Self {
        self.filter = ::std::option::Option::Some(input);
        self
    }
    /// <p>A filter to apply to the list.</p>
    pub fn set_filter(mut self, input: ::std::option::Option<crate::types::ReferenceFilter>) -> Self {
        self.filter = input;
        self
    }
    /// <p>A filter to apply to the list.</p>
    pub fn get_filter(&self) -> &::std::option::Option<crate::types::ReferenceFilter> {
        &self.filter
    }
    /// Consumes the builder and constructs a [`ListReferencesInput`](crate::operation::list_references::ListReferencesInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::list_references::ListReferencesInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::list_references::ListReferencesInput {
            reference_store_id: self.reference_store_id,
            max_results: self.max_results,
            next_token: self.next_token,
            filter: self.filter,
        })
    }
}