#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct CreateExportInput {
pub resource_specification: ::std::option::Option<crate::types::ExportResourceSpecification>,
pub file_format: ::std::option::Option<crate::types::ImportExportFileFormat>,
pub file_password: ::std::option::Option<::std::string::String>,
}
impl CreateExportInput {
pub fn resource_specification(&self) -> ::std::option::Option<&crate::types::ExportResourceSpecification> {
self.resource_specification.as_ref()
}
pub fn file_format(&self) -> ::std::option::Option<&crate::types::ImportExportFileFormat> {
self.file_format.as_ref()
}
pub fn file_password(&self) -> ::std::option::Option<&str> {
self.file_password.as_deref()
}
}
impl ::std::fmt::Debug for CreateExportInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("CreateExportInput");
formatter.field("resource_specification", &self.resource_specification);
formatter.field("file_format", &self.file_format);
formatter.field("file_password", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
impl CreateExportInput {
pub fn builder() -> crate::operation::create_export::builders::CreateExportInputBuilder {
crate::operation::create_export::builders::CreateExportInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct CreateExportInputBuilder {
pub(crate) resource_specification: ::std::option::Option<crate::types::ExportResourceSpecification>,
pub(crate) file_format: ::std::option::Option<crate::types::ImportExportFileFormat>,
pub(crate) file_password: ::std::option::Option<::std::string::String>,
}
impl CreateExportInputBuilder {
pub fn resource_specification(mut self, input: crate::types::ExportResourceSpecification) -> Self {
self.resource_specification = ::std::option::Option::Some(input);
self
}
pub fn set_resource_specification(mut self, input: ::std::option::Option<crate::types::ExportResourceSpecification>) -> Self {
self.resource_specification = input;
self
}
pub fn get_resource_specification(&self) -> &::std::option::Option<crate::types::ExportResourceSpecification> {
&self.resource_specification
}
pub fn file_format(mut self, input: crate::types::ImportExportFileFormat) -> Self {
self.file_format = ::std::option::Option::Some(input);
self
}
pub fn set_file_format(mut self, input: ::std::option::Option<crate::types::ImportExportFileFormat>) -> Self {
self.file_format = input;
self
}
pub fn get_file_format(&self) -> &::std::option::Option<crate::types::ImportExportFileFormat> {
&self.file_format
}
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::create_export::CreateExportInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::create_export::CreateExportInput {
resource_specification: self.resource_specification,
file_format: self.file_format,
file_password: self.file_password,
})
}
}
impl ::std::fmt::Debug for CreateExportInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("CreateExportInputBuilder");
formatter.field("resource_specification", &self.resource_specification);
formatter.field("file_format", &self.file_format);
formatter.field("file_password", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}