aws_sdk_dataexchange/operation/delete_asset/
_delete_asset_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteAssetInput {
pub asset_id: ::std::option::Option<::std::string::String>,
pub data_set_id: ::std::option::Option<::std::string::String>,
pub revision_id: ::std::option::Option<::std::string::String>,
}
impl DeleteAssetInput {
pub fn asset_id(&self) -> ::std::option::Option<&str> {
self.asset_id.as_deref()
}
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 DeleteAssetInput {
pub fn builder() -> crate::operation::delete_asset::builders::DeleteAssetInputBuilder {
crate::operation::delete_asset::builders::DeleteAssetInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteAssetInputBuilder {
pub(crate) asset_id: ::std::option::Option<::std::string::String>,
pub(crate) data_set_id: ::std::option::Option<::std::string::String>,
pub(crate) revision_id: ::std::option::Option<::std::string::String>,
}
impl DeleteAssetInputBuilder {
pub fn asset_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.asset_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_asset_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.asset_id = input;
self
}
pub fn get_asset_id(&self) -> &::std::option::Option<::std::string::String> {
&self.asset_id
}
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_asset::DeleteAssetInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_asset::DeleteAssetInput {
asset_id: self.asset_id,
data_set_id: self.data_set_id,
revision_id: self.revision_id,
})
}
}