AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
PillarReviewSummary.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/wellarchitected/model/Risk.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WellArchitected
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_WELLARCHITECTED_API PillarReviewSummary() = default;
37 AWS_WELLARCHITECTED_API PillarReviewSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WELLARCHITECTED_API PillarReviewSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const Aws::String& GetPillarId() const { return m_pillarId; }
45 inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
46 template<typename PillarIdT = Aws::String>
47 void SetPillarId(PillarIdT&& value) { m_pillarIdHasBeenSet = true; m_pillarId = std::forward<PillarIdT>(value); }
48 template<typename PillarIdT = Aws::String>
49 PillarReviewSummary& WithPillarId(PillarIdT&& value) { SetPillarId(std::forward<PillarIdT>(value)); return *this;}
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) { m_pillarNameHasBeenSet = true; m_pillarName = std::forward<PillarNameT>(value); }
58 template<typename PillarNameT = Aws::String>
59 PillarReviewSummary& WithPillarName(PillarNameT&& value) { SetPillarName(std::forward<PillarNameT>(value)); return *this;}
61
63
64 inline const Aws::String& GetNotes() const { return m_notes; }
65 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
66 template<typename NotesT = Aws::String>
67 void SetNotes(NotesT&& value) { m_notesHasBeenSet = true; m_notes = std::forward<NotesT>(value); }
68 template<typename NotesT = Aws::String>
69 PillarReviewSummary& WithNotes(NotesT&& value) { SetNotes(std::forward<NotesT>(value)); return *this;}
71
73
74 inline const Aws::Map<Risk, int>& GetRiskCounts() const { return m_riskCounts; }
75 inline bool RiskCountsHasBeenSet() const { return m_riskCountsHasBeenSet; }
76 template<typename RiskCountsT = Aws::Map<Risk, int>>
77 void SetRiskCounts(RiskCountsT&& value) { m_riskCountsHasBeenSet = true; m_riskCounts = std::forward<RiskCountsT>(value); }
78 template<typename RiskCountsT = Aws::Map<Risk, int>>
79 PillarReviewSummary& WithRiskCounts(RiskCountsT&& value) { SetRiskCounts(std::forward<RiskCountsT>(value)); return *this;}
80 inline PillarReviewSummary& AddRiskCounts(Risk key, int value) {
81 m_riskCountsHasBeenSet = true; m_riskCounts.emplace(key, value); return *this;
82 }
84
86
87 inline const Aws::Map<Risk, int>& GetPrioritizedRiskCounts() const { return m_prioritizedRiskCounts; }
88 inline bool PrioritizedRiskCountsHasBeenSet() const { return m_prioritizedRiskCountsHasBeenSet; }
89 template<typename PrioritizedRiskCountsT = Aws::Map<Risk, int>>
90 void SetPrioritizedRiskCounts(PrioritizedRiskCountsT&& value) { m_prioritizedRiskCountsHasBeenSet = true; m_prioritizedRiskCounts = std::forward<PrioritizedRiskCountsT>(value); }
91 template<typename PrioritizedRiskCountsT = Aws::Map<Risk, int>>
92 PillarReviewSummary& WithPrioritizedRiskCounts(PrioritizedRiskCountsT&& value) { SetPrioritizedRiskCounts(std::forward<PrioritizedRiskCountsT>(value)); return *this;}
94 m_prioritizedRiskCountsHasBeenSet = true; m_prioritizedRiskCounts.emplace(key, value); return *this;
95 }
97 private:
98
99 Aws::String m_pillarId;
100 bool m_pillarIdHasBeenSet = false;
101
102 Aws::String m_pillarName;
103 bool m_pillarNameHasBeenSet = false;
104
105 Aws::String m_notes;
106 bool m_notesHasBeenSet = false;
107
108 Aws::Map<Risk, int> m_riskCounts;
109 bool m_riskCountsHasBeenSet = false;
110
111 Aws::Map<Risk, int> m_prioritizedRiskCounts;
112 bool m_prioritizedRiskCountsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace WellArchitected
117} // 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