#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreatePresignedUrlInput {
pub instance_id: ::std::option::Option<::std::string::String>,
pub card_id: ::std::option::Option<::std::string::String>,
pub app_id: ::std::option::Option<::std::string::String>,
pub file_contents_sha256: ::std::option::Option<::std::string::String>,
pub file_name: ::std::option::Option<::std::string::String>,
pub scope: ::std::option::Option<crate::types::DocumentScope>,
pub session_id: ::std::option::Option<::std::string::String>,
}
impl CreatePresignedUrlInput {
pub fn instance_id(&self) -> ::std::option::Option<&str> {
self.instance_id.as_deref()
}
pub fn card_id(&self) -> ::std::option::Option<&str> {
self.card_id.as_deref()
}
pub fn app_id(&self) -> ::std::option::Option<&str> {
self.app_id.as_deref()
}
pub fn file_contents_sha256(&self) -> ::std::option::Option<&str> {
self.file_contents_sha256.as_deref()
}
pub fn file_name(&self) -> ::std::option::Option<&str> {
self.file_name.as_deref()
}
pub fn scope(&self) -> ::std::option::Option<&crate::types::DocumentScope> {
self.scope.as_ref()
}
pub fn session_id(&self) -> ::std::option::Option<&str> {
self.session_id.as_deref()
}
}
impl CreatePresignedUrlInput {
pub fn builder() -> crate::operation::create_presigned_url::builders::CreatePresignedUrlInputBuilder {
crate::operation::create_presigned_url::builders::CreatePresignedUrlInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreatePresignedUrlInputBuilder {
pub(crate) instance_id: ::std::option::Option<::std::string::String>,
pub(crate) card_id: ::std::option::Option<::std::string::String>,
pub(crate) app_id: ::std::option::Option<::std::string::String>,
pub(crate) file_contents_sha256: ::std::option::Option<::std::string::String>,
pub(crate) file_name: ::std::option::Option<::std::string::String>,
pub(crate) scope: ::std::option::Option<crate::types::DocumentScope>,
pub(crate) session_id: ::std::option::Option<::std::string::String>,
}
impl CreatePresignedUrlInputBuilder {
pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.instance_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.instance_id = input;
self
}
pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
&self.instance_id
}
pub fn card_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.card_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_card_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.card_id = input;
self
}
pub fn get_card_id(&self) -> &::std::option::Option<::std::string::String> {
&self.card_id
}
pub fn app_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.app_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_app_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.app_id = input;
self
}
pub fn get_app_id(&self) -> &::std::option::Option<::std::string::String> {
&self.app_id
}
pub fn file_contents_sha256(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.file_contents_sha256 = ::std::option::Option::Some(input.into());
self
}
pub fn set_file_contents_sha256(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.file_contents_sha256 = input;
self
}
pub fn get_file_contents_sha256(&self) -> &::std::option::Option<::std::string::String> {
&self.file_contents_sha256
}
pub fn file_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.file_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_file_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.file_name = input;
self
}
pub fn get_file_name(&self) -> &::std::option::Option<::std::string::String> {
&self.file_name
}
pub fn scope(mut self, input: crate::types::DocumentScope) -> Self {
self.scope = ::std::option::Option::Some(input);
self
}
pub fn set_scope(mut self, input: ::std::option::Option<crate::types::DocumentScope>) -> Self {
self.scope = input;
self
}
pub fn get_scope(&self) -> &::std::option::Option<crate::types::DocumentScope> {
&self.scope
}
pub fn session_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.session_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_session_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.session_id = input;
self
}
pub fn get_session_id(&self) -> &::std::option::Option<::std::string::String> {
&self.session_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::create_presigned_url::CreatePresignedUrlInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::create_presigned_url::CreatePresignedUrlInput {
instance_id: self.instance_id,
card_id: self.card_id,
app_id: self.app_id,
file_contents_sha256: self.file_contents_sha256,
file_name: self.file_name,
scope: self.scope,
session_id: self.session_id,
})
}
}