aws-sdk-eventbridge 1.105.0

AWS SDK for Amazon EventBridge
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 DescribeApiDestinationInput {
    /// <p>The name of the API destination to retrieve.</p>
    pub name: ::std::option::Option<::std::string::String>,
}
impl DescribeApiDestinationInput {
    /// <p>The name of the API destination to retrieve.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
}
impl DescribeApiDestinationInput {
    /// Creates a new builder-style object to manufacture [`DescribeApiDestinationInput`](crate::operation::describe_api_destination::DescribeApiDestinationInput).
    pub fn builder() -> crate::operation::describe_api_destination::builders::DescribeApiDestinationInputBuilder {
        crate::operation::describe_api_destination::builders::DescribeApiDestinationInputBuilder::default()
    }
}

/// A builder for [`DescribeApiDestinationInput`](crate::operation::describe_api_destination::DescribeApiDestinationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeApiDestinationInputBuilder {
    pub(crate) name: ::std::option::Option<::std::string::String>,
}
impl DescribeApiDestinationInputBuilder {
    /// <p>The name of the API destination to retrieve.</p>
    /// This field is required.
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the API destination to retrieve.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of the API destination to retrieve.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// Consumes the builder and constructs a [`DescribeApiDestinationInput`](crate::operation::describe_api_destination::DescribeApiDestinationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::describe_api_destination::DescribeApiDestinationInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::describe_api_destination::DescribeApiDestinationInput { name: self.name })
    }
}