AWS SDK for C++

AWS SDK for C++ Version 1.11.870

Loading...
Searching...
No Matches
PillarItem.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
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
31 public:
32 AWS_WELLARCHITECTED_API PillarItem() = default;
33 AWS_WELLARCHITECTED_API PillarItem(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WELLARCHITECTED_API PillarItem& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline Pillar GetPillar() const { return m_pillar; }
42 inline bool PillarHasBeenSet() const { return m_pillarHasBeenSet; }
43 inline void SetPillar(Pillar value) {
44 m_pillarHasBeenSet = true;
45 m_pillar = value;
46 }
47 inline PillarItem& WithPillar(Pillar value) {
48 SetPillar(value);
49 return *this;
50 }
52
54
58 inline const Aws::Vector<Aws::String>& GetIds() const { return m_ids; }
59 inline bool IdsHasBeenSet() const { return m_idsHasBeenSet; }
60 template <typename IdsT = Aws::Vector<Aws::String>>
61 void SetIds(IdsT&& value) {
62 m_idsHasBeenSet = true;
63 m_ids = std::forward<IdsT>(value);
64 }
65 template <typename IdsT = Aws::Vector<Aws::String>>
66 PillarItem& WithIds(IdsT&& value) {
67 SetIds(std::forward<IdsT>(value));
68 return *this;
69 }
70 template <typename IdsT = Aws::String>
71 PillarItem& AddIds(IdsT&& value) {
72 m_idsHasBeenSet = true;
73 m_ids.emplace_back(std::forward<IdsT>(value));
74 return *this;
75 }
77 private:
78 Pillar m_pillar{Pillar::NOT_SET};
79
81 bool m_pillarHasBeenSet = false;
82 bool m_idsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace WellArchitected
87} // namespace Aws
PillarItem & WithPillar(Pillar value)
Definition PillarItem.h:47
PillarItem & AddIds(IdsT &&value)
Definition PillarItem.h:71
AWS_WELLARCHITECTED_API PillarItem()=default
AWS_WELLARCHITECTED_API PillarItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetIds() const
Definition PillarItem.h:58
PillarItem & WithIds(IdsT &&value)
Definition PillarItem.h:66
AWS_WELLARCHITECTED_API PillarItem(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue