AWS SDK for C++

AWS SDK for C++ Version 1.11.936

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
67 inline const Aws::Vector<Aws::String>& GetGoalIds() const { return m_goalIds; }
68 inline bool GoalIdsHasBeenSet() const { return m_goalIdsHasBeenSet; }
69 template <typename GoalIdsT = Aws::Vector<Aws::String>>
70 void SetGoalIds(GoalIdsT&& value) {
71 m_goalIdsHasBeenSet = true;
72 m_goalIds = std::forward<GoalIdsT>(value);
73 }
74 template <typename GoalIdsT = Aws::Vector<Aws::String>>
75 Scope& WithGoalIds(GoalIdsT&& value) {
76 SetGoalIds(std::forward<GoalIdsT>(value));
77 return *this;
78 }
79 template <typename GoalIdsT = Aws::String>
80 Scope& AddGoalIds(GoalIdsT&& value) {
81 m_goalIdsHasBeenSet = true;
82 m_goalIds.emplace_back(std::forward<GoalIdsT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::Vector<PillarItem>& GetItems() const { return m_items; }
93 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
94 template <typename ItemsT = Aws::Vector<PillarItem>>
95 void SetItems(ItemsT&& value) {
96 m_itemsHasBeenSet = true;
97 m_items = std::forward<ItemsT>(value);
98 }
99 template <typename ItemsT = Aws::Vector<PillarItem>>
100 Scope& WithItems(ItemsT&& value) {
101 SetItems(std::forward<ItemsT>(value));
102 return *this;
103 }
104 template <typename ItemsT = PillarItem>
105 Scope& AddItems(ItemsT&& value) {
106 m_itemsHasBeenSet = true;
107 m_items.emplace_back(std::forward<ItemsT>(value));
108 return *this;
109 }
111 private:
112 Aws::Vector<Pillar> m_pillars;
113
114 Aws::Vector<Aws::String> m_goalIds;
115
117 bool m_pillarsHasBeenSet = false;
118 bool m_goalIdsHasBeenSet = false;
119 bool m_itemsHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace WellArchitected
124} // namespace Aws
Scope & WithItems(ItemsT &&value)
Definition Scope.h:100
AWS_WELLARCHITECTED_API Scope(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetGoalIds() const
Definition Scope.h:67
Scope & AddGoalIds(GoalIdsT &&value)
Definition Scope.h:80
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< PillarItem > & GetItems() const
Definition Scope.h:92
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:105
Scope & WithPillars(PillarsT &&value)
Definition Scope.h:51
AWS_WELLARCHITECTED_API Scope()=default
void SetGoalIds(GoalIdsT &&value)
Definition Scope.h:70
const Aws::Vector< Pillar > & GetPillars() const
Definition Scope.h:43
void SetItems(ItemsT &&value)
Definition Scope.h:95
Scope & AddPillars(Pillar value)
Definition Scope.h:55
Scope & WithGoalIds(GoalIdsT &&value)
Definition Scope.h:75
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue