aws-sdk-location 0.26.0

AWS SDK for Amazon Location Service
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 DescribeTrackerInput {
    /// <p>The name of the tracker resource.</p>
    #[doc(hidden)]
    pub tracker_name: std::option::Option<std::string::String>,
}
impl DescribeTrackerInput {
    /// <p>The name of the tracker resource.</p>
    pub fn tracker_name(&self) -> std::option::Option<&str> {
        self.tracker_name.as_deref()
    }
}
impl DescribeTrackerInput {
    /// Creates a new builder-style object to manufacture [`DescribeTrackerInput`](crate::operation::describe_tracker::DescribeTrackerInput).
    pub fn builder() -> crate::operation::describe_tracker::builders::DescribeTrackerInputBuilder {
        crate::operation::describe_tracker::builders::DescribeTrackerInputBuilder::default()
    }
}

/// A builder for [`DescribeTrackerInput`](crate::operation::describe_tracker::DescribeTrackerInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DescribeTrackerInputBuilder {
    pub(crate) tracker_name: std::option::Option<std::string::String>,
}
impl DescribeTrackerInputBuilder {
    /// <p>The name of the tracker resource.</p>
    pub fn tracker_name(mut self, input: impl Into<std::string::String>) -> Self {
        self.tracker_name = Some(input.into());
        self
    }
    /// <p>The name of the tracker resource.</p>
    pub fn set_tracker_name(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.tracker_name = input;
        self
    }
    /// Consumes the builder and constructs a [`DescribeTrackerInput`](crate::operation::describe_tracker::DescribeTrackerInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::describe_tracker::DescribeTrackerInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::describe_tracker::DescribeTrackerInput {
            tracker_name: self.tracker_name,
        })
    }
}