aws-sdk-groundstation 0.27.0

AWS SDK for AWS Ground Station
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 RegisterAgentInput {
    /// <p>Data for associating an agent with the capabilities it is managing.</p>
    #[doc(hidden)]
    pub discovery_data: std::option::Option<crate::types::DiscoveryData>,
    /// <p>Detailed information about the agent being registered.</p>
    #[doc(hidden)]
    pub agent_details: std::option::Option<crate::types::AgentDetails>,
}
impl RegisterAgentInput {
    /// <p>Data for associating an agent with the capabilities it is managing.</p>
    pub fn discovery_data(&self) -> std::option::Option<&crate::types::DiscoveryData> {
        self.discovery_data.as_ref()
    }
    /// <p>Detailed information about the agent being registered.</p>
    pub fn agent_details(&self) -> std::option::Option<&crate::types::AgentDetails> {
        self.agent_details.as_ref()
    }
}
impl RegisterAgentInput {
    /// Creates a new builder-style object to manufacture [`RegisterAgentInput`](crate::operation::register_agent::RegisterAgentInput).
    pub fn builder() -> crate::operation::register_agent::builders::RegisterAgentInputBuilder {
        crate::operation::register_agent::builders::RegisterAgentInputBuilder::default()
    }
}

/// A builder for [`RegisterAgentInput`](crate::operation::register_agent::RegisterAgentInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct RegisterAgentInputBuilder {
    pub(crate) discovery_data: std::option::Option<crate::types::DiscoveryData>,
    pub(crate) agent_details: std::option::Option<crate::types::AgentDetails>,
}
impl RegisterAgentInputBuilder {
    /// <p>Data for associating an agent with the capabilities it is managing.</p>
    pub fn discovery_data(mut self, input: crate::types::DiscoveryData) -> Self {
        self.discovery_data = Some(input);
        self
    }
    /// <p>Data for associating an agent with the capabilities it is managing.</p>
    pub fn set_discovery_data(
        mut self,
        input: std::option::Option<crate::types::DiscoveryData>,
    ) -> Self {
        self.discovery_data = input;
        self
    }
    /// <p>Detailed information about the agent being registered.</p>
    pub fn agent_details(mut self, input: crate::types::AgentDetails) -> Self {
        self.agent_details = Some(input);
        self
    }
    /// <p>Detailed information about the agent being registered.</p>
    pub fn set_agent_details(
        mut self,
        input: std::option::Option<crate::types::AgentDetails>,
    ) -> Self {
        self.agent_details = input;
        self
    }
    /// Consumes the builder and constructs a [`RegisterAgentInput`](crate::operation::register_agent::RegisterAgentInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::register_agent::RegisterAgentInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::register_agent::RegisterAgentInput {
            discovery_data: self.discovery_data,
            agent_details: self.agent_details,
        })
    }
}