AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetComponentScore(const Aws::Map<ResiliencyScoreType, ScoringComponentResiliencyScore>& value) { m_componentScoreHasBeenSet = true; m_componentScore = value; }
54 inline void SetComponentScore(Aws::Map<ResiliencyScoreType, ScoringComponentResiliencyScore>&& value) { m_componentScoreHasBeenSet = true; m_componentScore = std::move(value); }
57 inline ResiliencyScore& AddComponentScore(const ResiliencyScoreType& key, const ScoringComponentResiliencyScore& value) { m_componentScoreHasBeenSet = true; m_componentScore.emplace(key, value); return *this; }
58 inline ResiliencyScore& AddComponentScore(ResiliencyScoreType&& key, const ScoringComponentResiliencyScore& value) { m_componentScoreHasBeenSet = true; m_componentScore.emplace(std::move(key), value); return *this; }
59 inline ResiliencyScore& AddComponentScore(const ResiliencyScoreType& key, ScoringComponentResiliencyScore&& value) { m_componentScoreHasBeenSet = true; m_componentScore.emplace(key, std::move(value)); return *this; }
60 inline ResiliencyScore& AddComponentScore(ResiliencyScoreType&& key, ScoringComponentResiliencyScore&& value) { m_componentScoreHasBeenSet = true; m_componentScore.emplace(std::move(key), std::move(value)); return *this; }
62
64
67 inline const Aws::Map<DisruptionType, double>& GetDisruptionScore() const{ return m_disruptionScore; }
68 inline bool DisruptionScoreHasBeenSet() const { return m_disruptionScoreHasBeenSet; }
69 inline void SetDisruptionScore(const Aws::Map<DisruptionType, double>& value) { m_disruptionScoreHasBeenSet = true; m_disruptionScore = value; }
70 inline void SetDisruptionScore(Aws::Map<DisruptionType, double>&& value) { m_disruptionScoreHasBeenSet = true; m_disruptionScore = std::move(value); }
73 inline ResiliencyScore& AddDisruptionScore(const DisruptionType& key, double value) { m_disruptionScoreHasBeenSet = true; m_disruptionScore.emplace(key, value); return *this; }
74 inline ResiliencyScore& AddDisruptionScore(DisruptionType&& key, double value) { m_disruptionScoreHasBeenSet = true; m_disruptionScore.emplace(std::move(key), value); return *this; }
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;
95 bool m_scoreHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace ResilienceHub
100} // namespace Aws
ResiliencyScore & AddDisruptionScore(const DisruptionType &key, double value)
ResiliencyScore & WithComponentScore(const Aws::Map< ResiliencyScoreType, ScoringComponentResiliencyScore > &value)
const Aws::Map< DisruptionType, double > & GetDisruptionScore() const
void SetDisruptionScore(Aws::Map< DisruptionType, double > &&value)
void SetComponentScore(Aws::Map< ResiliencyScoreType, ScoringComponentResiliencyScore > &&value)
ResiliencyScore & AddDisruptionScore(DisruptionType &&key, double value)
ResiliencyScore & AddComponentScore(ResiliencyScoreType &&key, const ScoringComponentResiliencyScore &value)
ResiliencyScore & WithScore(double value)
ResiliencyScore & WithDisruptionScore(Aws::Map< DisruptionType, double > &&value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDisruptionScore(const Aws::Map< DisruptionType, double > &value)
AWS_RESILIENCEHUB_API ResiliencyScore & operator=(Aws::Utils::Json::JsonView jsonValue)
ResiliencyScore & AddComponentScore(const ResiliencyScoreType &key, ScoringComponentResiliencyScore &&value)
ResiliencyScore & WithComponentScore(Aws::Map< ResiliencyScoreType, ScoringComponentResiliencyScore > &&value)
AWS_RESILIENCEHUB_API ResiliencyScore(Aws::Utils::Json::JsonView jsonValue)
ResiliencyScore & AddComponentScore(const ResiliencyScoreType &key, const ScoringComponentResiliencyScore &value)
ResiliencyScore & WithDisruptionScore(const Aws::Map< DisruptionType, double > &value)
const Aws::Map< ResiliencyScoreType, ScoringComponentResiliencyScore > & GetComponentScore() const
void SetComponentScore(const Aws::Map< ResiliencyScoreType, ScoringComponentResiliencyScore > &value)
ResiliencyScore & AddComponentScore(ResiliencyScoreType &&key, ScoringComponentResiliencyScore &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue