aws-sdk-devopsagent 1.10.0

AWS SDK for AWS DevOps Agent Service
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetAsset`](crate::operation::get_asset::builders::GetAssetFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`agent_space_id(impl Into<String>)`](crate::operation::get_asset::builders::GetAssetFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::get_asset::builders::GetAssetFluentBuilder::set_agent_space_id):<br>required: **true**<br><p>The unique identifier for the agent space containing the asset</p><br>
    ///   - [`asset_id(impl Into<String>)`](crate::operation::get_asset::builders::GetAssetFluentBuilder::asset_id) / [`set_asset_id(Option<String>)`](crate::operation::get_asset::builders::GetAssetFluentBuilder::set_asset_id):<br>required: **true**<br><p>The unique identifier of the asset to retrieve</p><br>
    ///   - [`asset_version(i32)`](crate::operation::get_asset::builders::GetAssetFluentBuilder::asset_version) / [`set_asset_version(Option<i32>)`](crate::operation::get_asset::builders::GetAssetFluentBuilder::set_asset_version):<br>required: **false**<br><p>The specific version of the asset to retrieve. If omitted, the latest version is returned.</p><br>
    /// - On success, responds with [`GetAssetOutput`](crate::operation::get_asset::GetAssetOutput) with field(s):
    ///   - [`asset(Option<Asset>)`](crate::operation::get_asset::GetAssetOutput::asset): <p>The asset object</p>
    /// - On failure, responds with [`SdkError<GetAssetError>`](crate::operation::get_asset::GetAssetError)
    pub fn get_asset(&self) -> crate::operation::get_asset::builders::GetAssetFluentBuilder {
        crate::operation::get_asset::builders::GetAssetFluentBuilder::new(self.handle.clone())
    }
}