AWS SDK for C++

AWS SDK for C++ Version 1.11.869

Loading...
Searching...
No Matches
Scope.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
10#include <aws/wellarchitected/model/Pillar.h>
11#include <aws/wellarchitected/model/PillarItem.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WellArchitected {
23namespace Model {
24
31class Scope {
32 public:
33 AWS_WELLARCHITECTED_API Scope() = default;
34 AWS_WELLARCHITECTED_API Scope(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WELLARCHITECTED_API Scope& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<Pillar>& GetPillars() const { return m_pillars; }
44 inline bool PillarsHasBeenSet() const { return m_pillarsHasBeenSet; }
45 template <typename PillarsT = Aws::Vector<Pillar>>
46 void SetPillars(PillarsT&& value) {
47 m_pillarsHasBeenSet = true;
48 m_pillars = std::forward<PillarsT>(value);
49 }
50 template <typename PillarsT = Aws::Vector<Pillar>>
51 Scope& WithPillars(PillarsT&& value) {
52 SetPillars(std::forward<PillarsT>(value));
53 return *this;
54 }
55 inline Scope& AddPillars(Pillar value) {
56 m_pillarsHasBeenSet = true;
57 m_pillars.push_back(value);
58 return *this;
59 }
61
63
66 inline const Aws::Vector<Aws::String>& GetGoalIds() const { return m_goalIds; }
67 inline bool GoalIdsHasBeenSet() const { return m_goalIdsHasBeenSet; }
68 template <typename GoalIdsT = Aws::Vector<Aws::String>>
69 void SetGoalIds(GoalIdsT&& value) {
70 m_goalIdsHasBeenSet = true;
71 m_goalIds = std::forward<GoalIdsT>(value);
72 }
73 template <typename GoalIdsT = Aws::Vector<Aws::String>>
74 Scope& WithGoalIds(GoalIdsT&& value) {
75 SetGoalIds(std::forward<GoalIdsT>(value));
76 return *this;
77 }
78 template <typename GoalIdsT = Aws::String>
79 Scope& AddGoalIds(GoalIdsT&& value) {
80 m_goalIdsHasBeenSet = true;
81 m_goalIds.emplace_back(std::forward<GoalIdsT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Vector<PillarItem>& GetItems() const { return m_items; }
91 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
92 template <typename ItemsT = Aws::Vector<PillarItem>>
93 void SetItems(ItemsT&& value) {
94 m_itemsHasBeenSet = true;
95 m_items = std::forward<ItemsT>(value);
96 }
97 template <typename ItemsT = Aws::Vector<PillarItem>>
98 Scope& WithItems(ItemsT&& value) {
99 SetItems(std::forward<ItemsT>(value));
100 return *this;
101 }
102 template <typename ItemsT = PillarItem>
103 Scope& AddItems(ItemsT&& value) {
104 m_itemsHasBeenSet = true;
105 m_items.emplace_back(std::forward<ItemsT>(value));
106 return *this;
107 }
109 private:
110 Aws::Vector<Pillar> m_pillars;
111
112 Aws::Vector<Aws::String> m_goalIds;
113
115 bool m_pillarsHasBeenSet = false;
116 bool m_goalIdsHasBeenSet = false;
117 bool m_itemsHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace WellArchitected
122} // namespace Aws
Scope & WithItems(ItemsT &&value)
Definition Scope.h:98
AWS_WELLARCHITECTED_API Scope(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetGoalIds() const
Definition Scope.h:66
Scope & AddGoalIds(GoalIdsT &&value)
Definition Scope.h:79
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< PillarItem > & GetItems() const
Definition Scope.h:90
AWS_WELLARCHITECTED_API Scope & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPillars(PillarsT &&value)
Definition Scope.h:46
Scope & AddItems(ItemsT &&value)
Definition Scope.h:103
Scope & WithPillars(PillarsT &&value)
Definition Scope.h:51
AWS_WELLARCHITECTED_API Scope()=default
void SetGoalIds(GoalIdsT &&value)
Definition Scope.h:69
const Aws::Vector< Pillar > & GetPillars() const
Definition Scope.h:43
void SetItems(ItemsT &&value)
Definition Scope.h:93
Scope & AddPillars(Pillar value)
Definition Scope.h:55
Scope & WithGoalIds(GoalIdsT &&value)
Definition Scope.h:74
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue