#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteAssetFileInput {
pub agent_space_id: ::std::option::Option<::std::string::String>,
pub asset_id: ::std::option::Option<::std::string::String>,
pub path: ::std::option::Option<::std::string::String>,
}
impl DeleteAssetFileInput {
pub fn agent_space_id(&self) -> ::std::option::Option<&str> {
self.agent_space_id.as_deref()
}
pub fn asset_id(&self) -> ::std::option::Option<&str> {
self.asset_id.as_deref()
}
pub fn path(&self) -> ::std::option::Option<&str> {
self.path.as_deref()
}
}
impl DeleteAssetFileInput {
pub fn builder() -> crate::operation::delete_asset_file::builders::DeleteAssetFileInputBuilder {
crate::operation::delete_asset_file::builders::DeleteAssetFileInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteAssetFileInputBuilder {
pub(crate) agent_space_id: ::std::option::Option<::std::string::String>,
pub(crate) asset_id: ::std::option::Option<::std::string::String>,
pub(crate) path: ::std::option::Option<::std::string::String>,
}
impl DeleteAssetFileInputBuilder {
pub fn agent_space_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.agent_space_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_agent_space_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.agent_space_id = input;
self
}
pub fn get_agent_space_id(&self) -> &::std::option::Option<::std::string::String> {
&self.agent_space_id
}
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 path(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.path = ::std::option::Option::Some(input.into());
self
}
pub fn set_path(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.path = input;
self
}
pub fn get_path(&self) -> &::std::option::Option<::std::string::String> {
&self.path
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_asset_file::DeleteAssetFileInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_asset_file::DeleteAssetFileInput {
agent_space_id: self.agent_space_id,
asset_id: self.asset_id,
path: self.path,
})
}
}