aws-sdk-observabilityadmin 1.53.0

AWS SDK for CloudWatch Observability Admin 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 StartTelemetryEnrichmentOutput {
    /// <p>The status of the resource tags for telemetry feature after the start operation (<code>Running</code>, <code>Stopped</code>, or <code>Impaired</code>).</p>
    pub status: ::std::option::Option<crate::types::TelemetryEnrichmentStatus>,
    /// <p>The Amazon Resource Name (ARN) of the Resource Explorer managed view created for resource tags for telemetry.</p>
    pub aws_resource_explorer_managed_view_arn: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl StartTelemetryEnrichmentOutput {
    /// <p>The status of the resource tags for telemetry feature after the start operation (<code>Running</code>, <code>Stopped</code>, or <code>Impaired</code>).</p>
    pub fn status(&self) -> ::std::option::Option<&crate::types::TelemetryEnrichmentStatus> {
        self.status.as_ref()
    }
    /// <p>The Amazon Resource Name (ARN) of the Resource Explorer managed view created for resource tags for telemetry.</p>
    pub fn aws_resource_explorer_managed_view_arn(&self) -> ::std::option::Option<&str> {
        self.aws_resource_explorer_managed_view_arn.as_deref()
    }
}
impl ::aws_types::request_id::RequestId for StartTelemetryEnrichmentOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl StartTelemetryEnrichmentOutput {
    /// Creates a new builder-style object to manufacture [`StartTelemetryEnrichmentOutput`](crate::operation::start_telemetry_enrichment::StartTelemetryEnrichmentOutput).
    pub fn builder() -> crate::operation::start_telemetry_enrichment::builders::StartTelemetryEnrichmentOutputBuilder {
        crate::operation::start_telemetry_enrichment::builders::StartTelemetryEnrichmentOutputBuilder::default()
    }
}

/// A builder for [`StartTelemetryEnrichmentOutput`](crate::operation::start_telemetry_enrichment::StartTelemetryEnrichmentOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StartTelemetryEnrichmentOutputBuilder {
    pub(crate) status: ::std::option::Option<crate::types::TelemetryEnrichmentStatus>,
    pub(crate) aws_resource_explorer_managed_view_arn: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl StartTelemetryEnrichmentOutputBuilder {
    /// <p>The status of the resource tags for telemetry feature after the start operation (<code>Running</code>, <code>Stopped</code>, or <code>Impaired</code>).</p>
    pub fn status(mut self, input: crate::types::TelemetryEnrichmentStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The status of the resource tags for telemetry feature after the start operation (<code>Running</code>, <code>Stopped</code>, or <code>Impaired</code>).</p>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::TelemetryEnrichmentStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The status of the resource tags for telemetry feature after the start operation (<code>Running</code>, <code>Stopped</code>, or <code>Impaired</code>).</p>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::TelemetryEnrichmentStatus> {
        &self.status
    }
    /// <p>The Amazon Resource Name (ARN) of the Resource Explorer managed view created for resource tags for telemetry.</p>
    pub fn aws_resource_explorer_managed_view_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.aws_resource_explorer_managed_view_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the Resource Explorer managed view created for resource tags for telemetry.</p>
    pub fn set_aws_resource_explorer_managed_view_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.aws_resource_explorer_managed_view_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the Resource Explorer managed view created for resource tags for telemetry.</p>
    pub fn get_aws_resource_explorer_managed_view_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.aws_resource_explorer_managed_view_arn
    }
    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 [`StartTelemetryEnrichmentOutput`](crate::operation::start_telemetry_enrichment::StartTelemetryEnrichmentOutput).
    pub fn build(self) -> crate::operation::start_telemetry_enrichment::StartTelemetryEnrichmentOutput {
        crate::operation::start_telemetry_enrichment::StartTelemetryEnrichmentOutput {
            status: self.status,
            aws_resource_explorer_managed_view_arn: self.aws_resource_explorer_managed_view_arn,
            _request_id: self._request_id,
        }
    }
}