AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
PillarReviewSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
10#include <aws/wellarchitected/model/Risk.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WellArchitected {
22namespace Model {
23
30 public:
31 AWS_WELLARCHITECTED_API PillarReviewSummary() = default;
32 AWS_WELLARCHITECTED_API PillarReviewSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WELLARCHITECTED_API PillarReviewSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const Aws::String& GetPillarId() const { return m_pillarId; }
39 inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
40 template <typename PillarIdT = Aws::String>
41 void SetPillarId(PillarIdT&& value) {
42 m_pillarIdHasBeenSet = true;
43 m_pillarId = std::forward<PillarIdT>(value);
44 }
45 template <typename PillarIdT = Aws::String>
46 PillarReviewSummary& WithPillarId(PillarIdT&& value) {
47 SetPillarId(std::forward<PillarIdT>(value));
48 return *this;
49 }
51
53
54 inline const Aws::String& GetPillarName() const { return m_pillarName; }
55 inline bool PillarNameHasBeenSet() const { return m_pillarNameHasBeenSet; }
56 template <typename PillarNameT = Aws::String>
57 void SetPillarName(PillarNameT&& value) {
58 m_pillarNameHasBeenSet = true;
59 m_pillarName = std::forward<PillarNameT>(value);
60 }
61 template <typename PillarNameT = Aws::String>
62 PillarReviewSummary& WithPillarName(PillarNameT&& value) {
63 SetPillarName(std::forward<PillarNameT>(value));
64 return *this;
65 }
67
69
70 inline const Aws::String& GetNotes() const { return m_notes; }
71 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
72 template <typename NotesT = Aws::String>
73 void SetNotes(NotesT&& value) {
74 m_notesHasBeenSet = true;
75 m_notes = std::forward<NotesT>(value);
76 }
77 template <typename NotesT = Aws::String>
78 PillarReviewSummary& WithNotes(NotesT&& value) {
79 SetNotes(std::forward<NotesT>(value));
80 return *this;
81 }
83
85
86 inline const Aws::Map<Risk, int>& GetRiskCounts() const { return m_riskCounts; }
87 inline bool RiskCountsHasBeenSet() const { return m_riskCountsHasBeenSet; }
88 template <typename RiskCountsT = Aws::Map<Risk, int>>
89 void SetRiskCounts(RiskCountsT&& value) {
90 m_riskCountsHasBeenSet = true;
91 m_riskCounts = std::forward<RiskCountsT>(value);
92 }
93 template <typename RiskCountsT = Aws::Map<Risk, int>>
94 PillarReviewSummary& WithRiskCounts(RiskCountsT&& value) {
95 SetRiskCounts(std::forward<RiskCountsT>(value));
96 return *this;
97 }
98 inline PillarReviewSummary& AddRiskCounts(Risk key, int value) {
99 m_riskCountsHasBeenSet = true;
100 m_riskCounts.emplace(key, value);
101 return *this;
102 }
104
106
107 inline const Aws::Map<Risk, int>& GetPrioritizedRiskCounts() const { return m_prioritizedRiskCounts; }
108 inline bool PrioritizedRiskCountsHasBeenSet() const { return m_prioritizedRiskCountsHasBeenSet; }
109 template <typename PrioritizedRiskCountsT = Aws::Map<Risk, int>>
110 void SetPrioritizedRiskCounts(PrioritizedRiskCountsT&& value) {
111 m_prioritizedRiskCountsHasBeenSet = true;
112 m_prioritizedRiskCounts = std::forward<PrioritizedRiskCountsT>(value);
113 }
114 template <typename PrioritizedRiskCountsT = Aws::Map<Risk, int>>
115 PillarReviewSummary& WithPrioritizedRiskCounts(PrioritizedRiskCountsT&& value) {
116 SetPrioritizedRiskCounts(std::forward<PrioritizedRiskCountsT>(value));
117 return *this;
118 }
120 m_prioritizedRiskCountsHasBeenSet = true;
121 m_prioritizedRiskCounts.emplace(key, value);
122 return *this;
123 }
125 private:
126 Aws::String m_pillarId;
127 bool m_pillarIdHasBeenSet = false;
128
129 Aws::String m_pillarName;
130 bool m_pillarNameHasBeenSet = false;
131
132 Aws::String m_notes;
133 bool m_notesHasBeenSet = false;
134
135 Aws::Map<Risk, int> m_riskCounts;
136 bool m_riskCountsHasBeenSet = false;
137
138 Aws::Map<Risk, int> m_prioritizedRiskCounts;
139 bool m_prioritizedRiskCountsHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace WellArchitected
144} // namespace Aws
PillarReviewSummary & WithPillarId(PillarIdT &&value)
const Aws::Map< Risk, int > & GetPrioritizedRiskCounts() const
AWS_WELLARCHITECTED_API PillarReviewSummary()=default
PillarReviewSummary & WithPrioritizedRiskCounts(PrioritizedRiskCountsT &&value)
PillarReviewSummary & AddPrioritizedRiskCounts(Risk key, int value)
AWS_WELLARCHITECTED_API PillarReviewSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Risk, int > & GetRiskCounts() const
void SetPrioritizedRiskCounts(PrioritizedRiskCountsT &&value)
AWS_WELLARCHITECTED_API PillarReviewSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
PillarReviewSummary & AddRiskCounts(Risk key, int value)
PillarReviewSummary & WithNotes(NotesT &&value)
PillarReviewSummary & WithRiskCounts(RiskCountsT &&value)
PillarReviewSummary & WithPillarName(PillarNameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue