aws-sdk-connect 1.154.0

AWS SDK for Amazon Connect 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 DescribeInstanceAttributeOutput {
    /// <p>The type of attribute.</p>
    pub attribute: ::std::option::Option<crate::types::Attribute>,
    _request_id: Option<String>,
}
impl DescribeInstanceAttributeOutput {
    /// <p>The type of attribute.</p>
    pub fn attribute(&self) -> ::std::option::Option<&crate::types::Attribute> {
        self.attribute.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for DescribeInstanceAttributeOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DescribeInstanceAttributeOutput {
    /// Creates a new builder-style object to manufacture [`DescribeInstanceAttributeOutput`](crate::operation::describe_instance_attribute::DescribeInstanceAttributeOutput).
    pub fn builder() -> crate::operation::describe_instance_attribute::builders::DescribeInstanceAttributeOutputBuilder {
        crate::operation::describe_instance_attribute::builders::DescribeInstanceAttributeOutputBuilder::default()
    }
}

/// A builder for [`DescribeInstanceAttributeOutput`](crate::operation::describe_instance_attribute::DescribeInstanceAttributeOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeInstanceAttributeOutputBuilder {
    pub(crate) attribute: ::std::option::Option<crate::types::Attribute>,
    _request_id: Option<String>,
}
impl DescribeInstanceAttributeOutputBuilder {
    /// <p>The type of attribute.</p>
    pub fn attribute(mut self, input: crate::types::Attribute) -> Self {
        self.attribute = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of attribute.</p>
    pub fn set_attribute(mut self, input: ::std::option::Option<crate::types::Attribute>) -> Self {
        self.attribute = input;
        self
    }
    /// <p>The type of attribute.</p>
    pub fn get_attribute(&self) -> &::std::option::Option<crate::types::Attribute> {
        &self.attribute
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`DescribeInstanceAttributeOutput`](crate::operation::describe_instance_attribute::DescribeInstanceAttributeOutput).
    pub fn build(self) -> crate::operation::describe_instance_attribute::DescribeInstanceAttributeOutput {
        crate::operation::describe_instance_attribute::DescribeInstanceAttributeOutput {
            attribute: self.attribute,
            _request_id: self._request_id,
        }
    }
}