aws-sdk-devopsagent 1.10.0

AWS SDK for AWS DevOps Agent Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Request structure for deleting an asset</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteAssetInput {
    /// <p>The unique identifier for the agent space containing the asset</p>
    pub agent_space_id: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the asset to delete</p>
    pub asset_id: ::std::option::Option<::std::string::String>,
}
impl DeleteAssetInput {
    /// <p>The unique identifier for the agent space containing the asset</p>
    pub fn agent_space_id(&self) -> ::std::option::Option<&str> {
        self.agent_space_id.as_deref()
    }
    /// <p>The unique identifier of the asset to delete</p>
    pub fn asset_id(&self) -> ::std::option::Option<&str> {
        self.asset_id.as_deref()
    }
}
impl DeleteAssetInput {
    /// Creates a new builder-style object to manufacture [`DeleteAssetInput`](crate::operation::delete_asset::DeleteAssetInput).
    pub fn builder() -> crate::operation::delete_asset::builders::DeleteAssetInputBuilder {
        crate::operation::delete_asset::builders::DeleteAssetInputBuilder::default()
    }
}

/// A builder for [`DeleteAssetInput`](crate::operation::delete_asset::DeleteAssetInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteAssetInputBuilder {
    pub(crate) agent_space_id: ::std::option::Option<::std::string::String>,
    pub(crate) asset_id: ::std::option::Option<::std::string::String>,
}
impl DeleteAssetInputBuilder {
    /// <p>The unique identifier for the agent space containing the asset</p>
    /// This field is required.
    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
    }
    /// <p>The unique identifier for the agent space containing the asset</p>
    pub fn set_agent_space_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.agent_space_id = input;
        self
    }
    /// <p>The unique identifier for the agent space containing the asset</p>
    pub fn get_agent_space_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.agent_space_id
    }
    /// <p>The unique identifier of the asset to delete</p>
    /// This field is required.
    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
    }
    /// <p>The unique identifier of the asset to delete</p>
    pub fn set_asset_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.asset_id = input;
        self
    }
    /// <p>The unique identifier of the asset to delete</p>
    pub fn get_asset_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.asset_id
    }
    /// Consumes the builder and constructs a [`DeleteAssetInput`](crate::operation::delete_asset::DeleteAssetInput).
    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 {
            agent_space_id: self.agent_space_id,
            asset_id: self.asset_id,
        })
    }
}