#[non_exhaustive]pub struct PublishMetricsInputBuilder { /* private fields */ }Expand description
A builder for PublishMetricsInput.
Implementations§
source§impl PublishMetricsInputBuilder
impl PublishMetricsInputBuilder
sourcepub fn environment_name(self, input: impl Into<String>) -> Self
pub fn environment_name(self, input: impl Into<String>) -> Self
Internal only. The name of the environment.
sourcepub fn set_environment_name(self, input: Option<String>) -> Self
pub fn set_environment_name(self, input: Option<String>) -> Self
Internal only. The name of the environment.
sourcepub fn get_environment_name(&self) -> &Option<String>
pub fn get_environment_name(&self) -> &Option<String>
Internal only. The name of the environment.
sourcepub fn metric_data(self, input: MetricDatum) -> Self
pub fn metric_data(self, input: MetricDatum) -> Self
Appends an item to metric_data.
To override the contents of this collection use set_metric_data.
Internal only. Publishes metrics to Amazon CloudWatch. To learn more about the metrics published to Amazon CloudWatch, see Amazon MWAA performance metrics in Amazon CloudWatch.
sourcepub fn set_metric_data(self, input: Option<Vec<MetricDatum>>) -> Self
pub fn set_metric_data(self, input: Option<Vec<MetricDatum>>) -> Self
Internal only. Publishes metrics to Amazon CloudWatch. To learn more about the metrics published to Amazon CloudWatch, see Amazon MWAA performance metrics in Amazon CloudWatch.
sourcepub fn get_metric_data(&self) -> &Option<Vec<MetricDatum>>
pub fn get_metric_data(&self) -> &Option<Vec<MetricDatum>>
Internal only. Publishes metrics to Amazon CloudWatch. To learn more about the metrics published to Amazon CloudWatch, see Amazon MWAA performance metrics in Amazon CloudWatch.
sourcepub fn build(self) -> Result<PublishMetricsInput, BuildError>
pub fn build(self) -> Result<PublishMetricsInput, BuildError>
Consumes the builder and constructs a PublishMetricsInput.
source§impl PublishMetricsInputBuilder
impl PublishMetricsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PublishMetricsOutput, SdkError<PublishMetricsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PublishMetricsOutput, SdkError<PublishMetricsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PublishMetricsInputBuilder
impl Clone for PublishMetricsInputBuilder
source§fn clone(&self) -> PublishMetricsInputBuilder
fn clone(&self) -> PublishMetricsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PublishMetricsInputBuilder
impl Debug for PublishMetricsInputBuilder
source§impl Default for PublishMetricsInputBuilder
impl Default for PublishMetricsInputBuilder
source§fn default() -> PublishMetricsInputBuilder
fn default() -> PublishMetricsInputBuilder
source§impl PartialEq<PublishMetricsInputBuilder> for PublishMetricsInputBuilder
impl PartialEq<PublishMetricsInputBuilder> for PublishMetricsInputBuilder
source§fn eq(&self, other: &PublishMetricsInputBuilder) -> bool
fn eq(&self, other: &PublishMetricsInputBuilder) -> bool
self and other values to be equal, and is used
by ==.