// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetMetric`](crate::operation::get_metric::builders::GetMetricFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`app_id(impl Into<String>)`](crate::operation::get_metric::builders::GetMetricFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::get_metric::builders::GetMetricFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app.<br>
/// - [`metric_id(impl Into<String>)`](crate::operation::get_metric::builders::GetMetricFluentBuilder::metric_id) / [`set_metric_id(Option<String>)`](crate::operation::get_metric::builders::GetMetricFluentBuilder::set_metric_id):<br>required: **true**<br>The ID of the metric to retrieve.<br>
/// - [`stage(PlanStage)`](crate::operation::get_metric::builders::GetMetricFluentBuilder::stage) / [`set_stage(Option<PlanStage>)`](crate::operation::get_metric::builders::GetMetricFluentBuilder::set_stage):<br>required: **false**<br>The offering stage to read the metric from: DRAFT (the latest draft) or PUBLISHED (the offering customers see). Absent: PUBLISHED when scope=live, DRAFT when scope=sandbox.<br>
/// - [`scope(RequestScope)`](crate::operation::get_metric::builders::GetMetricFluentBuilder::scope) / [`set_scope(Option<RequestScope>)`](crate::operation::get_metric::builders::GetMetricFluentBuilder::set_scope):<br>required: **true**<br>Required. The environment: live or sandbox. live reads the published offering by default; sandbox reads the app's draft.<br>
/// - On success, responds with [`GetMetricOutput`](crate::operation::get_metric::GetMetricOutput) with field(s):
/// - [`metric(Option<Metric>)`](crate::operation::get_metric::GetMetricOutput::metric): The requested metric.
/// - On failure, responds with [`SdkError<GetMetricError>`](crate::operation::get_metric::GetMetricError)
pub fn get_metric(&self) -> crate::operation::get_metric::builders::GetMetricFluentBuilder {
crate::operation::get_metric::builders::GetMetricFluentBuilder::new(self.handle.clone())
}
}