/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#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 question in the pillar.
See Also:
* AWS
* API Reference
*/
class QuestionMetric
{
public:
AWS_WELLARCHITECTED_API QuestionMetric();
AWS_WELLARCHITECTED_API QuestionMetric(Aws::Utils::Json::JsonView jsonValue);
AWS_WELLARCHITECTED_API QuestionMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetQuestionId() const{ return m_questionId; }
inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
inline void SetQuestionId(const Aws::String& value) { m_questionIdHasBeenSet = true; m_questionId = value; }
inline void SetQuestionId(Aws::String&& value) { m_questionIdHasBeenSet = true; m_questionId = std::move(value); }
inline void SetQuestionId(const char* value) { m_questionIdHasBeenSet = true; m_questionId.assign(value); }
inline QuestionMetric& WithQuestionId(const Aws::String& value) { SetQuestionId(value); return *this;}
inline QuestionMetric& WithQuestionId(Aws::String&& value) { SetQuestionId(std::move(value)); return *this;}
inline QuestionMetric& WithQuestionId(const char* value) { SetQuestionId(value); return *this;}
inline const Risk& GetRisk() const{ return m_risk; }
inline bool RiskHasBeenSet() const { return m_riskHasBeenSet; }
inline void SetRisk(const Risk& value) { m_riskHasBeenSet = true; m_risk = value; }
inline void SetRisk(Risk&& value) { m_riskHasBeenSet = true; m_risk = std::move(value); }
inline QuestionMetric& WithRisk(const Risk& value) { SetRisk(value); return *this;}
inline QuestionMetric& WithRisk(Risk&& value) { SetRisk(std::move(value)); return *this;}
/**
* The best practices, or choices, that have been identified as contributing to
* risk in a question.
*/
inline const Aws::Vector& GetBestPractices() const{ return m_bestPractices; }
/**
* The best practices, or choices, that have been identified as contributing to
* risk in a question.
*/
inline bool BestPracticesHasBeenSet() const { return m_bestPracticesHasBeenSet; }
/**
* The best practices, or choices, that have been identified as contributing to
* risk in a question.
*/
inline void SetBestPractices(const Aws::Vector& value) { m_bestPracticesHasBeenSet = true; m_bestPractices = value; }
/**
* The best practices, or choices, that have been identified as contributing to
* risk in a question.
*/
inline void SetBestPractices(Aws::Vector&& value) { m_bestPracticesHasBeenSet = true; m_bestPractices = std::move(value); }
/**
* The best practices, or choices, that have been identified as contributing to
* risk in a question.
*/
inline QuestionMetric& WithBestPractices(const Aws::Vector& value) { SetBestPractices(value); return *this;}
/**
* The best practices, or choices, that have been identified as contributing to
* risk in a question.
*/
inline QuestionMetric& WithBestPractices(Aws::Vector&& value) { SetBestPractices(std::move(value)); return *this;}
/**
* The best practices, or choices, that have been identified as contributing to
* risk in a question.
*/
inline QuestionMetric& AddBestPractices(const BestPractice& value) { m_bestPracticesHasBeenSet = true; m_bestPractices.push_back(value); return *this; }
/**
* The best practices, or choices, that have been identified as contributing to
* risk in a question.
*/
inline QuestionMetric& AddBestPractices(BestPractice&& value) { m_bestPracticesHasBeenSet = true; m_bestPractices.push_back(std::move(value)); return *this; }
private:
Aws::String m_questionId;
bool m_questionIdHasBeenSet = false;
Risk m_risk;
bool m_riskHasBeenSet = false;
Aws::Vector m_bestPractices;
bool m_bestPracticesHasBeenSet = false;
};
} // namespace Model
} // namespace WellArchitected
} // namespace Aws