/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoT { namespace Model { /** *

The name and ARN of a fleet metric.

See Also:

AWS * API Reference

*/ class FleetMetricNameAndArn { public: AWS_IOT_API FleetMetricNameAndArn(); AWS_IOT_API FleetMetricNameAndArn(Aws::Utils::Json::JsonView jsonValue); AWS_IOT_API FleetMetricNameAndArn& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The fleet metric name.

*/ inline const Aws::String& GetMetricName() const{ return m_metricName; } /** *

The fleet metric name.

*/ inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } /** *

The fleet metric name.

*/ inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *

The fleet metric name.

*/ inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *

The fleet metric name.

*/ inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } /** *

The fleet metric name.

*/ inline FleetMetricNameAndArn& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *

The fleet metric name.

*/ inline FleetMetricNameAndArn& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *

The fleet metric name.

*/ inline FleetMetricNameAndArn& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *

The fleet metric ARN.

*/ inline const Aws::String& GetMetricArn() const{ return m_metricArn; } /** *

The fleet metric ARN.

*/ inline bool MetricArnHasBeenSet() const { return m_metricArnHasBeenSet; } /** *

The fleet metric ARN.

*/ inline void SetMetricArn(const Aws::String& value) { m_metricArnHasBeenSet = true; m_metricArn = value; } /** *

The fleet metric ARN.

*/ inline void SetMetricArn(Aws::String&& value) { m_metricArnHasBeenSet = true; m_metricArn = std::move(value); } /** *

The fleet metric ARN.

*/ inline void SetMetricArn(const char* value) { m_metricArnHasBeenSet = true; m_metricArn.assign(value); } /** *

The fleet metric ARN.

*/ inline FleetMetricNameAndArn& WithMetricArn(const Aws::String& value) { SetMetricArn(value); return *this;} /** *

The fleet metric ARN.

*/ inline FleetMetricNameAndArn& WithMetricArn(Aws::String&& value) { SetMetricArn(std::move(value)); return *this;} /** *

The fleet metric ARN.

*/ inline FleetMetricNameAndArn& WithMetricArn(const char* value) { SetMetricArn(value); return *this;} private: Aws::String m_metricName; bool m_metricNameHasBeenSet = false; Aws::String m_metricArn; bool m_metricArnHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws