aws-sdk-continuum 1.0.0

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

/// Specifies the Collector to retrieve.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetCollectorInput {
    /// The unique identifier of the Collector to retrieve.
    pub collector_id: ::std::option::Option<::std::string::String>,
}
impl GetCollectorInput {
    /// The unique identifier of the Collector to retrieve.
    pub fn collector_id(&self) -> ::std::option::Option<&str> {
        self.collector_id.as_deref()
    }
}
impl GetCollectorInput {
    /// Creates a new builder-style object to manufacture [`GetCollectorInput`](crate::operation::get_collector::GetCollectorInput).
    pub fn builder() -> crate::operation::get_collector::builders::GetCollectorInputBuilder {
        crate::operation::get_collector::builders::GetCollectorInputBuilder::default()
    }
}

/// A builder for [`GetCollectorInput`](crate::operation::get_collector::GetCollectorInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetCollectorInputBuilder {
    pub(crate) collector_id: ::std::option::Option<::std::string::String>,
}
impl GetCollectorInputBuilder {
    /// The unique identifier of the Collector to retrieve.
    /// This field is required.
    pub fn collector_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.collector_id = ::std::option::Option::Some(input.into());
        self
    }
    /// The unique identifier of the Collector to retrieve.
    pub fn set_collector_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.collector_id = input;
        self
    }
    /// The unique identifier of the Collector to retrieve.
    pub fn get_collector_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.collector_id
    }
    /// Consumes the builder and constructs a [`GetCollectorInput`](crate::operation::get_collector::GetCollectorInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_collector::GetCollectorInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_collector::GetCollectorInput {
            collector_id: self.collector_id,
        })
    }
}