AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResiliencyScore.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/resiliencehub/model/ResiliencyScoreType.h>
10#include <aws/resiliencehub/model/ScoringComponentResiliencyScore.h>
11#include <aws/resiliencehub/model/DisruptionType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ResilienceHub
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_RESILIENCEHUB_API ResiliencyScore() = default;
39 AWS_RESILIENCEHUB_API ResiliencyScore(Aws::Utils::Json::JsonView jsonValue);
40 AWS_RESILIENCEHUB_API ResiliencyScore& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
52 inline bool ComponentScoreHasBeenSet() const { return m_componentScoreHasBeenSet; }
53 template<typename ComponentScoreT = Aws::Map<ResiliencyScoreType, ScoringComponentResiliencyScore>>
54 void SetComponentScore(ComponentScoreT&& value) { m_componentScoreHasBeenSet = true; m_componentScore = std::forward<ComponentScoreT>(value); }
55 template<typename ComponentScoreT = Aws::Map<ResiliencyScoreType, ScoringComponentResiliencyScore>>
56 ResiliencyScore& WithComponentScore(ComponentScoreT&& value) { SetComponentScore(std::forward<ComponentScoreT>(value)); return *this;}
58 m_componentScoreHasBeenSet = true; m_componentScore.emplace(key, value); return *this;
59 }
61
63
66 inline const Aws::Map<DisruptionType, double>& GetDisruptionScore() const { return m_disruptionScore; }
67 inline bool DisruptionScoreHasBeenSet() const { return m_disruptionScoreHasBeenSet; }
68 template<typename DisruptionScoreT = Aws::Map<DisruptionType, double>>
69 void SetDisruptionScore(DisruptionScoreT&& value) { m_disruptionScoreHasBeenSet = true; m_disruptionScore = std::forward<DisruptionScoreT>(value); }
70 template<typename DisruptionScoreT = Aws::Map<DisruptionType, double>>
71 ResiliencyScore& WithDisruptionScore(DisruptionScoreT&& value) { SetDisruptionScore(std::forward<DisruptionScoreT>(value)); return *this;}
73 m_disruptionScoreHasBeenSet = true; m_disruptionScore.emplace(key, value); return *this;
74 }
76
78
81 inline double GetScore() const { return m_score; }
82 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
83 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
84 inline ResiliencyScore& WithScore(double value) { SetScore(value); return *this;}
86 private:
87
89 bool m_componentScoreHasBeenSet = false;
90
91 Aws::Map<DisruptionType, double> m_disruptionScore;
92 bool m_disruptionScoreHasBeenSet = false;
93
94 double m_score{0.0};
95 bool m_scoreHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace ResilienceHub
100} // namespace Aws
ResiliencyScore & AddComponentScore(ResiliencyScoreType key, ScoringComponentResiliencyScore value)
const Aws::Map< DisruptionType, double > & GetDisruptionScore() const
AWS_RESILIENCEHUB_API ResiliencyScore()=default
ResiliencyScore & WithComponentScore(ComponentScoreT &&value)
ResiliencyScore & WithScore(double value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDisruptionScore(DisruptionScoreT &&value)
AWS_RESILIENCEHUB_API ResiliencyScore & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetComponentScore(ComponentScoreT &&value)
AWS_RESILIENCEHUB_API ResiliencyScore(Aws::Utils::Json::JsonView jsonValue)
ResiliencyScore & WithDisruptionScore(DisruptionScoreT &&value)
ResiliencyScore & AddDisruptionScore(DisruptionType key, double value)
const Aws::Map< ResiliencyScoreType, ScoringComponentResiliencyScore > & GetComponentScore() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue