aws-sdk-backupexternal 1.0.0

AWS SDK for AWS Backup External
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetAgentDownloadInput {
    /// The Amazon Resource Name (ARN) of the appliance.
    pub appliance_arn: ::std::option::Option<::std::string::String>,
    /// The platform and installation format for the agent download.
    pub platform: ::std::option::Option<crate::types::AgentPlatform>,
}
impl GetAgentDownloadInput {
    /// The Amazon Resource Name (ARN) of the appliance.
    pub fn appliance_arn(&self) -> ::std::option::Option<&str> {
        self.appliance_arn.as_deref()
    }
    /// The platform and installation format for the agent download.
    pub fn platform(&self) -> ::std::option::Option<&crate::types::AgentPlatform> {
        self.platform.as_ref()
    }
}
impl GetAgentDownloadInput {
    /// Creates a new builder-style object to manufacture [`GetAgentDownloadInput`](crate::operation::get_agent_download::GetAgentDownloadInput).
    pub fn builder() -> crate::operation::get_agent_download::builders::GetAgentDownloadInputBuilder {
        crate::operation::get_agent_download::builders::GetAgentDownloadInputBuilder::default()
    }
}

/// A builder for [`GetAgentDownloadInput`](crate::operation::get_agent_download::GetAgentDownloadInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetAgentDownloadInputBuilder {
    pub(crate) appliance_arn: ::std::option::Option<::std::string::String>,
    pub(crate) platform: ::std::option::Option<crate::types::AgentPlatform>,
}
impl GetAgentDownloadInputBuilder {
    /// The Amazon Resource Name (ARN) of the appliance.
    /// This field is required.
    pub fn appliance_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.appliance_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// The Amazon Resource Name (ARN) of the appliance.
    pub fn set_appliance_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.appliance_arn = input;
        self
    }
    /// The Amazon Resource Name (ARN) of the appliance.
    pub fn get_appliance_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.appliance_arn
    }
    /// The platform and installation format for the agent download.
    /// This field is required.
    pub fn platform(mut self, input: crate::types::AgentPlatform) -> Self {
        self.platform = ::std::option::Option::Some(input);
        self
    }
    /// The platform and installation format for the agent download.
    pub fn set_platform(mut self, input: ::std::option::Option<crate::types::AgentPlatform>) -> Self {
        self.platform = input;
        self
    }
    /// The platform and installation format for the agent download.
    pub fn get_platform(&self) -> &::std::option::Option<crate::types::AgentPlatform> {
        &self.platform
    }
    /// Consumes the builder and constructs a [`GetAgentDownloadInput`](crate::operation::get_agent_download::GetAgentDownloadInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_agent_download::GetAgentDownloadInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_agent_download::GetAgentDownloadInput {
            appliance_arn: self.appliance_arn,
            platform: self.platform,
        })
    }
}