aws-sdk-appflow 1.98.0

AWS SDK for Amazon Appflow
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 DescribeConnectorOutput {
    /// <p>Configuration info of all the connectors that the user requested.</p>
    pub connector_configuration: ::std::option::Option<crate::types::ConnectorConfiguration>,
    _request_id: Option<String>,
}
impl DescribeConnectorOutput {
    /// <p>Configuration info of all the connectors that the user requested.</p>
    pub fn connector_configuration(&self) -> ::std::option::Option<&crate::types::ConnectorConfiguration> {
        self.connector_configuration.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for DescribeConnectorOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DescribeConnectorOutput {
    /// Creates a new builder-style object to manufacture [`DescribeConnectorOutput`](crate::operation::describe_connector::DescribeConnectorOutput).
    pub fn builder() -> crate::operation::describe_connector::builders::DescribeConnectorOutputBuilder {
        crate::operation::describe_connector::builders::DescribeConnectorOutputBuilder::default()
    }
}

/// A builder for [`DescribeConnectorOutput`](crate::operation::describe_connector::DescribeConnectorOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeConnectorOutputBuilder {
    pub(crate) connector_configuration: ::std::option::Option<crate::types::ConnectorConfiguration>,
    _request_id: Option<String>,
}
impl DescribeConnectorOutputBuilder {
    /// <p>Configuration info of all the connectors that the user requested.</p>
    pub fn connector_configuration(mut self, input: crate::types::ConnectorConfiguration) -> Self {
        self.connector_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>Configuration info of all the connectors that the user requested.</p>
    pub fn set_connector_configuration(mut self, input: ::std::option::Option<crate::types::ConnectorConfiguration>) -> Self {
        self.connector_configuration = input;
        self
    }
    /// <p>Configuration info of all the connectors that the user requested.</p>
    pub fn get_connector_configuration(&self) -> &::std::option::Option<crate::types::ConnectorConfiguration> {
        &self.connector_configuration
    }
    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 [`DescribeConnectorOutput`](crate::operation::describe_connector::DescribeConnectorOutput).
    pub fn build(self) -> crate::operation::describe_connector::DescribeConnectorOutput {
        crate::operation::describe_connector::DescribeConnectorOutput {
            connector_configuration: self.connector_configuration,
            _request_id: self._request_id,
        }
    }
}