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

A metric for a particular lens in a workload.

See Also:

AWS * API Reference

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

The lens ARN.

*/ inline const Aws::String& GetLensArn() const{ return m_lensArn; } /** *

The lens ARN.

*/ inline bool LensArnHasBeenSet() const { return m_lensArnHasBeenSet; } /** *

The lens ARN.

*/ inline void SetLensArn(const Aws::String& value) { m_lensArnHasBeenSet = true; m_lensArn = value; } /** *

The lens ARN.

*/ inline void SetLensArn(Aws::String&& value) { m_lensArnHasBeenSet = true; m_lensArn = std::move(value); } /** *

The lens ARN.

*/ inline void SetLensArn(const char* value) { m_lensArnHasBeenSet = true; m_lensArn.assign(value); } /** *

The lens ARN.

*/ inline LensMetric& WithLensArn(const Aws::String& value) { SetLensArn(value); return *this;} /** *

The lens ARN.

*/ inline LensMetric& WithLensArn(Aws::String&& value) { SetLensArn(std::move(value)); return *this;} /** *

The lens ARN.

*/ inline LensMetric& WithLensArn(const char* value) { SetLensArn(value); return *this;} /** *

The metrics for the pillars in a lens.

*/ inline const Aws::Vector& GetPillars() const{ return m_pillars; } /** *

The metrics for the pillars in a lens.

*/ inline bool PillarsHasBeenSet() const { return m_pillarsHasBeenSet; } /** *

The metrics for the pillars in a lens.

*/ inline void SetPillars(const Aws::Vector& value) { m_pillarsHasBeenSet = true; m_pillars = value; } /** *

The metrics for the pillars in a lens.

*/ inline void SetPillars(Aws::Vector&& value) { m_pillarsHasBeenSet = true; m_pillars = std::move(value); } /** *

The metrics for the pillars in a lens.

*/ inline LensMetric& WithPillars(const Aws::Vector& value) { SetPillars(value); return *this;} /** *

The metrics for the pillars in a lens.

*/ inline LensMetric& WithPillars(Aws::Vector&& value) { SetPillars(std::move(value)); return *this;} /** *

The metrics for the pillars in a lens.

*/ inline LensMetric& AddPillars(const PillarMetric& value) { m_pillarsHasBeenSet = true; m_pillars.push_back(value); return *this; } /** *

The metrics for the pillars in a lens.

*/ inline LensMetric& AddPillars(PillarMetric&& value) { m_pillarsHasBeenSet = true; m_pillars.push_back(std::move(value)); return *this; } inline const Aws::Map& GetRiskCounts() const{ return m_riskCounts; } inline bool RiskCountsHasBeenSet() const { return m_riskCountsHasBeenSet; } inline void SetRiskCounts(const Aws::Map& value) { m_riskCountsHasBeenSet = true; m_riskCounts = value; } inline void SetRiskCounts(Aws::Map&& value) { m_riskCountsHasBeenSet = true; m_riskCounts = std::move(value); } inline LensMetric& WithRiskCounts(const Aws::Map& value) { SetRiskCounts(value); return *this;} inline LensMetric& WithRiskCounts(Aws::Map&& value) { SetRiskCounts(std::move(value)); return *this;} inline LensMetric& AddRiskCounts(const Risk& key, int value) { m_riskCountsHasBeenSet = true; m_riskCounts.emplace(key, value); return *this; } inline LensMetric& AddRiskCounts(Risk&& key, int value) { m_riskCountsHasBeenSet = true; m_riskCounts.emplace(std::move(key), value); return *this; } private: Aws::String m_lensArn; bool m_lensArnHasBeenSet = false; Aws::Vector m_pillars; bool m_pillarsHasBeenSet = false; Aws::Map m_riskCounts; bool m_riskCountsHasBeenSet = false; }; } // namespace Model } // namespace WellArchitected } // namespace Aws