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 GetReadSetInput {
    /// <p>The read set's ID.</p>
    pub id: ::std::option::Option<::std::string::String>,
    /// <p>The read set's sequence store ID.</p>
    pub sequence_store_id: ::std::option::Option<::std::string::String>,
    /// <p>The file to retrieve.</p>
    pub file: ::std::option::Option<crate::types::ReadSetFile>,
    /// <p>The part number to retrieve.</p>
    pub part_number: ::std::option::Option<i32>,
}
impl GetReadSetInput {
    /// <p>The read set's ID.</p>
    pub fn id(&self) -> ::std::option::Option<&str> {
        self.id.as_deref()
    }
    /// <p>The read set's sequence store ID.</p>
    pub fn sequence_store_id(&self) -> ::std::option::Option<&str> {
        self.sequence_store_id.as_deref()
    }
    /// <p>The file to retrieve.</p>
    pub fn file(&self) -> ::std::option::Option<&crate::types::ReadSetFile> {
        self.file.as_ref()
    }
    /// <p>The part number to retrieve.</p>
    pub fn part_number(&self) -> ::std::option::Option<i32> {
        self.part_number
    }
}
impl GetReadSetInput {
    /// Creates a new builder-style object to manufacture [`GetReadSetInput`](crate::operation::get_read_set::GetReadSetInput).
    pub fn builder() -> crate::operation::get_read_set::builders::GetReadSetInputBuilder {
        crate::operation::get_read_set::builders::GetReadSetInputBuilder::default()
    }
}

/// A builder for [`GetReadSetInput`](crate::operation::get_read_set::GetReadSetInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetReadSetInputBuilder {
    pub(crate) id: ::std::option::Option<::std::string::String>,
    pub(crate) sequence_store_id: ::std::option::Option<::std::string::String>,
    pub(crate) file: ::std::option::Option<crate::types::ReadSetFile>,
    pub(crate) part_number: ::std::option::Option<i32>,
}
impl GetReadSetInputBuilder {
    /// <p>The read set's ID.</p>
    /// This field is required.
    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The read set's ID.</p>
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// <p>The read set's ID.</p>
    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.id
    }
    /// <p>The read set's sequence store ID.</p>
    /// This field is required.
    pub fn sequence_store_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.sequence_store_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The read set's sequence store ID.</p>
    pub fn set_sequence_store_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.sequence_store_id = input;
        self
    }
    /// <p>The read set's sequence store ID.</p>
    pub fn get_sequence_store_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.sequence_store_id
    }
    /// <p>The file to retrieve.</p>
    pub fn file(mut self, input: crate::types::ReadSetFile) -> Self {
        self.file = ::std::option::Option::Some(input);
        self
    }
    /// <p>The file to retrieve.</p>
    pub fn set_file(mut self, input: ::std::option::Option<crate::types::ReadSetFile>) -> Self {
        self.file = input;
        self
    }
    /// <p>The file to retrieve.</p>
    pub fn get_file(&self) -> &::std::option::Option<crate::types::ReadSetFile> {
        &self.file
    }
    /// <p>The part number to retrieve.</p>
    /// This field is required.
    pub fn part_number(mut self, input: i32) -> Self {
        self.part_number = ::std::option::Option::Some(input);
        self
    }
    /// <p>The part number to retrieve.</p>
    pub fn set_part_number(mut self, input: ::std::option::Option<i32>) -> Self {
        self.part_number = input;
        self
    }
    /// <p>The part number to retrieve.</p>
    pub fn get_part_number(&self) -> &::std::option::Option<i32> {
        &self.part_number
    }
    /// Consumes the builder and constructs a [`GetReadSetInput`](crate::operation::get_read_set::GetReadSetInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::get_read_set::GetReadSetInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_read_set::GetReadSetInput {
            id: self.id,
            sequence_store_id: self.sequence_store_id,
            file: self.file,
            part_number: self.part_number,
        })
    }
}