aws-sdk-kafka 1.126.0

AWS SDK for Managed Streaming for Kafka
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Prometheus settings.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Prometheus {
    /// <p>Indicates whether you want to turn on or turn off the JMX Exporter.</p>
    pub jmx_exporter: ::std::option::Option<crate::types::JmxExporter>,
    /// <p>Indicates whether you want to turn on or turn off the Node Exporter.</p>
    pub node_exporter: ::std::option::Option<crate::types::NodeExporter>,
}
impl Prometheus {
    /// <p>Indicates whether you want to turn on or turn off the JMX Exporter.</p>
    pub fn jmx_exporter(&self) -> ::std::option::Option<&crate::types::JmxExporter> {
        self.jmx_exporter.as_ref()
    }
    /// <p>Indicates whether you want to turn on or turn off the Node Exporter.</p>
    pub fn node_exporter(&self) -> ::std::option::Option<&crate::types::NodeExporter> {
        self.node_exporter.as_ref()
    }
}
impl Prometheus {
    /// Creates a new builder-style object to manufacture [`Prometheus`](crate::types::Prometheus).
    pub fn builder() -> crate::types::builders::PrometheusBuilder {
        crate::types::builders::PrometheusBuilder::default()
    }
}

/// A builder for [`Prometheus`](crate::types::Prometheus).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct PrometheusBuilder {
    pub(crate) jmx_exporter: ::std::option::Option<crate::types::JmxExporter>,
    pub(crate) node_exporter: ::std::option::Option<crate::types::NodeExporter>,
}
impl PrometheusBuilder {
    /// <p>Indicates whether you want to turn on or turn off the JMX Exporter.</p>
    pub fn jmx_exporter(mut self, input: crate::types::JmxExporter) -> Self {
        self.jmx_exporter = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether you want to turn on or turn off the JMX Exporter.</p>
    pub fn set_jmx_exporter(mut self, input: ::std::option::Option<crate::types::JmxExporter>) -> Self {
        self.jmx_exporter = input;
        self
    }
    /// <p>Indicates whether you want to turn on or turn off the JMX Exporter.</p>
    pub fn get_jmx_exporter(&self) -> &::std::option::Option<crate::types::JmxExporter> {
        &self.jmx_exporter
    }
    /// <p>Indicates whether you want to turn on or turn off the Node Exporter.</p>
    pub fn node_exporter(mut self, input: crate::types::NodeExporter) -> Self {
        self.node_exporter = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether you want to turn on or turn off the Node Exporter.</p>
    pub fn set_node_exporter(mut self, input: ::std::option::Option<crate::types::NodeExporter>) -> Self {
        self.node_exporter = input;
        self
    }
    /// <p>Indicates whether you want to turn on or turn off the Node Exporter.</p>
    pub fn get_node_exporter(&self) -> &::std::option::Option<crate::types::NodeExporter> {
        &self.node_exporter
    }
    /// Consumes the builder and constructs a [`Prometheus`](crate::types::Prometheus).
    pub fn build(self) -> crate::types::Prometheus {
        crate::types::Prometheus {
            jmx_exporter: self.jmx_exporter,
            node_exporter: self.node_exporter,
        }
    }
}