#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct UpdateExportInput {
pub export_id: ::std::option::Option<::std::string::String>,
pub file_password: ::std::option::Option<::std::string::String>,
}
impl UpdateExportInput {
pub fn export_id(&self) -> ::std::option::Option<&str> {
self.export_id.as_deref()
}
pub fn file_password(&self) -> ::std::option::Option<&str> {
self.file_password.as_deref()
}
}
impl ::std::fmt::Debug for UpdateExportInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("UpdateExportInput");
formatter.field("export_id", &self.export_id);
formatter.field("file_password", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
impl UpdateExportInput {
pub fn builder() -> crate::operation::update_export::builders::UpdateExportInputBuilder {
crate::operation::update_export::builders::UpdateExportInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct UpdateExportInputBuilder {
pub(crate) export_id: ::std::option::Option<::std::string::String>,
pub(crate) file_password: ::std::option::Option<::std::string::String>,
}
impl UpdateExportInputBuilder {
pub fn export_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.export_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_export_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.export_id = input;
self
}
pub fn get_export_id(&self) -> &::std::option::Option<::std::string::String> {
&self.export_id
}
pub fn file_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.file_password = ::std::option::Option::Some(input.into());
self
}
pub fn set_file_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.file_password = input;
self
}
pub fn get_file_password(&self) -> &::std::option::Option<::std::string::String> {
&self.file_password
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_export::UpdateExportInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_export::UpdateExportInput {
export_id: self.export_id,
file_password: self.file_password,
})
}
}
impl ::std::fmt::Debug for UpdateExportInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("UpdateExportInputBuilder");
formatter.field("export_id", &self.export_id);
formatter.field("file_password", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}