aws_sdk_dataexchange/operation/delete_revision/
_delete_revision_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteRevisionInput {
pub data_set_id: ::std::option::Option<::std::string::String>,
pub revision_id: ::std::option::Option<::std::string::String>,
}
impl DeleteRevisionInput {
pub fn data_set_id(&self) -> ::std::option::Option<&str> {
self.data_set_id.as_deref()
}
pub fn revision_id(&self) -> ::std::option::Option<&str> {
self.revision_id.as_deref()
}
}
impl DeleteRevisionInput {
pub fn builder() -> crate::operation::delete_revision::builders::DeleteRevisionInputBuilder {
crate::operation::delete_revision::builders::DeleteRevisionInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteRevisionInputBuilder {
pub(crate) data_set_id: ::std::option::Option<::std::string::String>,
pub(crate) revision_id: ::std::option::Option<::std::string::String>,
}
impl DeleteRevisionInputBuilder {
pub fn data_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.data_set_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_data_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.data_set_id = input;
self
}
pub fn get_data_set_id(&self) -> &::std::option::Option<::std::string::String> {
&self.data_set_id
}
pub fn revision_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.revision_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_revision_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.revision_id = input;
self
}
pub fn get_revision_id(&self) -> &::std::option::Option<::std::string::String> {
&self.revision_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_revision::DeleteRevisionInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_revision::DeleteRevisionInput {
data_set_id: self.data_set_id,
revision_id: self.revision_id,
})
}
}