#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub struct UploadDocumentsInput {
pub documents: ::aws_smithy_types::byte_stream::ByteStream,
pub content_type: ::std::option::Option<crate::types::ContentType>,
}
impl UploadDocumentsInput {
pub fn documents(&self) -> &::aws_smithy_types::byte_stream::ByteStream {
&self.documents
}
pub fn content_type(&self) -> ::std::option::Option<&crate::types::ContentType> {
self.content_type.as_ref()
}
}
impl UploadDocumentsInput {
pub fn builder() -> crate::operation::upload_documents::builders::UploadDocumentsInputBuilder {
crate::operation::upload_documents::builders::UploadDocumentsInputBuilder::default()
}
}
#[derive(::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UploadDocumentsInputBuilder {
pub(crate) documents: ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
pub(crate) content_type: ::std::option::Option<crate::types::ContentType>,
}
impl UploadDocumentsInputBuilder {
pub fn documents(mut self, input: ::aws_smithy_types::byte_stream::ByteStream) -> Self {
self.documents = ::std::option::Option::Some(input);
self
}
pub fn set_documents(mut self, input: ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>) -> Self {
self.documents = input;
self
}
pub fn get_documents(&self) -> &::std::option::Option<::aws_smithy_types::byte_stream::ByteStream> {
&self.documents
}
pub fn content_type(mut self, input: crate::types::ContentType) -> Self {
self.content_type = ::std::option::Option::Some(input);
self
}
pub fn set_content_type(mut self, input: ::std::option::Option<crate::types::ContentType>) -> Self {
self.content_type = input;
self
}
pub fn get_content_type(&self) -> &::std::option::Option<crate::types::ContentType> {
&self.content_type
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::upload_documents::UploadDocumentsInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::upload_documents::UploadDocumentsInput {
documents: self.documents.unwrap_or_default(),
content_type: self.content_type,
})
}
}