aws-sdk-securityhub 1.118.0

AWS SDK for AWS SecurityHub
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 GetConnectorOutput {
    /// <p>The Amazon Resource Name (ARN) of the connector.</p>
    pub connector_arn: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the connector.</p>
    pub connector_id: ::std::option::Option<::std::string::String>,
    /// <p>The name of the connector.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>The description of the connector.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>The ISO 8601 UTC timestamp indicating when the connector was created.</p>
    pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The ISO 8601 UTC timestamp indicating when the connector was last updated.</p>
    pub last_updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The health status of the connector, including connectivity status and last check time.</p>
    pub health: ::std::option::Option<crate::types::CspmHealthCheck>,
    /// <p>The cloud provider configuration details for the connector.</p>
    pub provider_detail: ::std::option::Option<crate::types::CspmProviderDetail>,
    /// <p>The service principal that created the connector.</p>
    pub created_by: ::std::option::Option<::std::string::String>,
    /// <p>The enablement status of the connector.</p>
    pub enablement_status: ::std::option::Option<crate::types::CspmEnablementStatus>,
    _request_id: Option<String>,
}
impl GetConnectorOutput {
    /// <p>The Amazon Resource Name (ARN) of the connector.</p>
    pub fn connector_arn(&self) -> ::std::option::Option<&str> {
        self.connector_arn.as_deref()
    }
    /// <p>The unique identifier of the connector.</p>
    pub fn connector_id(&self) -> ::std::option::Option<&str> {
        self.connector_id.as_deref()
    }
    /// <p>The name of the connector.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The description of the connector.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>The ISO 8601 UTC timestamp indicating when the connector was created.</p>
    pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.created_at.as_ref()
    }
    /// <p>The ISO 8601 UTC timestamp indicating when the connector was last updated.</p>
    pub fn last_updated_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.last_updated_at.as_ref()
    }
    /// <p>The health status of the connector, including connectivity status and last check time.</p>
    pub fn health(&self) -> ::std::option::Option<&crate::types::CspmHealthCheck> {
        self.health.as_ref()
    }
    /// <p>The cloud provider configuration details for the connector.</p>
    pub fn provider_detail(&self) -> ::std::option::Option<&crate::types::CspmProviderDetail> {
        self.provider_detail.as_ref()
    }
    /// <p>The service principal that created the connector.</p>
    pub fn created_by(&self) -> ::std::option::Option<&str> {
        self.created_by.as_deref()
    }
    /// <p>The enablement status of the connector.</p>
    pub fn enablement_status(&self) -> ::std::option::Option<&crate::types::CspmEnablementStatus> {
        self.enablement_status.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetConnectorOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetConnectorOutput {
    /// Creates a new builder-style object to manufacture [`GetConnectorOutput`](crate::operation::get_connector::GetConnectorOutput).
    pub fn builder() -> crate::operation::get_connector::builders::GetConnectorOutputBuilder {
        crate::operation::get_connector::builders::GetConnectorOutputBuilder::default()
    }
}

/// A builder for [`GetConnectorOutput`](crate::operation::get_connector::GetConnectorOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetConnectorOutputBuilder {
    pub(crate) connector_arn: ::std::option::Option<::std::string::String>,
    pub(crate) connector_id: ::std::option::Option<::std::string::String>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) last_updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) health: ::std::option::Option<crate::types::CspmHealthCheck>,
    pub(crate) provider_detail: ::std::option::Option<crate::types::CspmProviderDetail>,
    pub(crate) created_by: ::std::option::Option<::std::string::String>,
    pub(crate) enablement_status: ::std::option::Option<crate::types::CspmEnablementStatus>,
    _request_id: Option<String>,
}
impl GetConnectorOutputBuilder {
    /// <p>The Amazon Resource Name (ARN) of the connector.</p>
    pub fn connector_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.connector_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the connector.</p>
    pub fn set_connector_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.connector_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the connector.</p>
    pub fn get_connector_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.connector_arn
    }
    /// <p>The unique identifier of the connector.</p>
    /// This field is required.
    pub fn connector_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.connector_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the connector.</p>
    pub fn set_connector_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.connector_id = input;
        self
    }
    /// <p>The unique identifier of the connector.</p>
    pub fn get_connector_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.connector_id
    }
    /// <p>The name of the connector.</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 connector.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of the connector.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>The description of the connector.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The description of the connector.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>The description of the connector.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>The ISO 8601 UTC timestamp indicating when the connector was created.</p>
    /// This field is required.
    pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.created_at = ::std::option::Option::Some(input);
        self
    }
    /// <p>The ISO 8601 UTC timestamp indicating when the connector was created.</p>
    pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.created_at = input;
        self
    }
    /// <p>The ISO 8601 UTC timestamp indicating when the connector was created.</p>
    pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.created_at
    }
    /// <p>The ISO 8601 UTC timestamp indicating when the connector was last updated.</p>
    /// This field is required.
    pub fn last_updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.last_updated_at = ::std::option::Option::Some(input);
        self
    }
    /// <p>The ISO 8601 UTC timestamp indicating when the connector was last updated.</p>
    pub fn set_last_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.last_updated_at = input;
        self
    }
    /// <p>The ISO 8601 UTC timestamp indicating when the connector was last updated.</p>
    pub fn get_last_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.last_updated_at
    }
    /// <p>The health status of the connector, including connectivity status and last check time.</p>
    /// This field is required.
    pub fn health(mut self, input: crate::types::CspmHealthCheck) -> Self {
        self.health = ::std::option::Option::Some(input);
        self
    }
    /// <p>The health status of the connector, including connectivity status and last check time.</p>
    pub fn set_health(mut self, input: ::std::option::Option<crate::types::CspmHealthCheck>) -> Self {
        self.health = input;
        self
    }
    /// <p>The health status of the connector, including connectivity status and last check time.</p>
    pub fn get_health(&self) -> &::std::option::Option<crate::types::CspmHealthCheck> {
        &self.health
    }
    /// <p>The cloud provider configuration details for the connector.</p>
    /// This field is required.
    pub fn provider_detail(mut self, input: crate::types::CspmProviderDetail) -> Self {
        self.provider_detail = ::std::option::Option::Some(input);
        self
    }
    /// <p>The cloud provider configuration details for the connector.</p>
    pub fn set_provider_detail(mut self, input: ::std::option::Option<crate::types::CspmProviderDetail>) -> Self {
        self.provider_detail = input;
        self
    }
    /// <p>The cloud provider configuration details for the connector.</p>
    pub fn get_provider_detail(&self) -> &::std::option::Option<crate::types::CspmProviderDetail> {
        &self.provider_detail
    }
    /// <p>The service principal that created the connector.</p>
    pub fn created_by(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.created_by = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The service principal that created the connector.</p>
    pub fn set_created_by(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.created_by = input;
        self
    }
    /// <p>The service principal that created the connector.</p>
    pub fn get_created_by(&self) -> &::std::option::Option<::std::string::String> {
        &self.created_by
    }
    /// <p>The enablement status of the connector.</p>
    pub fn enablement_status(mut self, input: crate::types::CspmEnablementStatus) -> Self {
        self.enablement_status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The enablement status of the connector.</p>
    pub fn set_enablement_status(mut self, input: ::std::option::Option<crate::types::CspmEnablementStatus>) -> Self {
        self.enablement_status = input;
        self
    }
    /// <p>The enablement status of the connector.</p>
    pub fn get_enablement_status(&self) -> &::std::option::Option<crate::types::CspmEnablementStatus> {
        &self.enablement_status
    }
    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 [`GetConnectorOutput`](crate::operation::get_connector::GetConnectorOutput).
    pub fn build(self) -> crate::operation::get_connector::GetConnectorOutput {
        crate::operation::get_connector::GetConnectorOutput {
            connector_arn: self.connector_arn,
            connector_id: self.connector_id,
            name: self.name,
            description: self.description,
            created_at: self.created_at,
            last_updated_at: self.last_updated_at,
            health: self.health,
            provider_detail: self.provider_detail,
            created_by: self.created_by,
            enablement_status: self.enablement_status,
            _request_id: self._request_id,
        }
    }
}