/**
* 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 pillar in a lens.
See Also:
AWS
* API Reference
*/
class PillarMetric
{
public:
AWS_WELLARCHITECTED_API PillarMetric();
AWS_WELLARCHITECTED_API PillarMetric(Aws::Utils::Json::JsonView jsonValue);
AWS_WELLARCHITECTED_API PillarMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetPillarId() const{ return m_pillarId; }
inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
inline void SetPillarId(const Aws::String& value) { m_pillarIdHasBeenSet = true; m_pillarId = value; }
inline void SetPillarId(Aws::String&& value) { m_pillarIdHasBeenSet = true; m_pillarId = std::move(value); }
inline void SetPillarId(const char* value) { m_pillarIdHasBeenSet = true; m_pillarId.assign(value); }
inline PillarMetric& WithPillarId(const Aws::String& value) { SetPillarId(value); return *this;}
inline PillarMetric& WithPillarId(Aws::String&& value) { SetPillarId(std::move(value)); return *this;}
inline PillarMetric& WithPillarId(const char* value) { SetPillarId(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 PillarMetric& WithRiskCounts(const Aws::Map& value) { SetRiskCounts(value); return *this;}
inline PillarMetric& WithRiskCounts(Aws::Map&& value) { SetRiskCounts(std::move(value)); return *this;}
inline PillarMetric& AddRiskCounts(const Risk& key, int value) { m_riskCountsHasBeenSet = true; m_riskCounts.emplace(key, value); return *this; }
inline PillarMetric& AddRiskCounts(Risk&& key, int value) { m_riskCountsHasBeenSet = true; m_riskCounts.emplace(std::move(key), value); return *this; }
/**
* The questions that have been identified as risks in the pillar.
*/
inline const Aws::Vector& GetQuestions() const{ return m_questions; }
/**
* The questions that have been identified as risks in the pillar.
*/
inline bool QuestionsHasBeenSet() const { return m_questionsHasBeenSet; }
/**
* The questions that have been identified as risks in the pillar.
*/
inline void SetQuestions(const Aws::Vector& value) { m_questionsHasBeenSet = true; m_questions = value; }
/**
* The questions that have been identified as risks in the pillar.
*/
inline void SetQuestions(Aws::Vector&& value) { m_questionsHasBeenSet = true; m_questions = std::move(value); }
/**
* The questions that have been identified as risks in the pillar.
*/
inline PillarMetric& WithQuestions(const Aws::Vector& value) { SetQuestions(value); return *this;}
/**
* The questions that have been identified as risks in the pillar.
*/
inline PillarMetric& WithQuestions(Aws::Vector&& value) { SetQuestions(std::move(value)); return *this;}
/**
* The questions that have been identified as risks in the pillar.
*/
inline PillarMetric& AddQuestions(const QuestionMetric& value) { m_questionsHasBeenSet = true; m_questions.push_back(value); return *this; }
/**
* The questions that have been identified as risks in the pillar.
*/
inline PillarMetric& AddQuestions(QuestionMetric&& value) { m_questionsHasBeenSet = true; m_questions.push_back(std::move(value)); return *this; }
private:
Aws::String m_pillarId;
bool m_pillarIdHasBeenSet = false;
Aws::Map m_riskCounts;
bool m_riskCountsHasBeenSet = false;
Aws::Vector m_questions;
bool m_questionsHasBeenSet = false;
};
} // namespace Model
} // namespace WellArchitected
} // namespace Aws