AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
Lens.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WellArchitected {
21namespace Model {
22
28class Lens {
29 public:
30 AWS_WELLARCHITECTED_API Lens() = default;
31 AWS_WELLARCHITECTED_API Lens(Aws::Utils::Json::JsonView jsonValue);
32 AWS_WELLARCHITECTED_API Lens& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetLensArn() const { return m_lensArn; }
40 inline bool LensArnHasBeenSet() const { return m_lensArnHasBeenSet; }
41 template <typename LensArnT = Aws::String>
42 void SetLensArn(LensArnT&& value) {
43 m_lensArnHasBeenSet = true;
44 m_lensArn = std::forward<LensArnT>(value);
45 }
46 template <typename LensArnT = Aws::String>
47 Lens& WithLensArn(LensArnT&& value) {
48 SetLensArn(std::forward<LensArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetLensVersion() const { return m_lensVersion; }
58 inline bool LensVersionHasBeenSet() const { return m_lensVersionHasBeenSet; }
59 template <typename LensVersionT = Aws::String>
60 void SetLensVersion(LensVersionT&& value) {
61 m_lensVersionHasBeenSet = true;
62 m_lensVersion = std::forward<LensVersionT>(value);
63 }
64 template <typename LensVersionT = Aws::String>
65 Lens& WithLensVersion(LensVersionT&& value) {
66 SetLensVersion(std::forward<LensVersionT>(value));
67 return *this;
68 }
70
72
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template <typename NameT = Aws::String>
76 void SetName(NameT&& value) {
77 m_nameHasBeenSet = true;
78 m_name = std::forward<NameT>(value);
79 }
80 template <typename NameT = Aws::String>
81 Lens& WithName(NameT&& value) {
82 SetName(std::forward<NameT>(value));
83 return *this;
84 }
86
88
89 inline const Aws::String& GetDescription() const { return m_description; }
90 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 template <typename DescriptionT = Aws::String>
92 void SetDescription(DescriptionT&& value) {
93 m_descriptionHasBeenSet = true;
94 m_description = std::forward<DescriptionT>(value);
95 }
96 template <typename DescriptionT = Aws::String>
97 Lens& WithDescription(DescriptionT&& value) {
98 SetDescription(std::forward<DescriptionT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetOwner() const { return m_owner; }
108 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
109 template <typename OwnerT = Aws::String>
110 void SetOwner(OwnerT&& value) {
111 m_ownerHasBeenSet = true;
112 m_owner = std::forward<OwnerT>(value);
113 }
114 template <typename OwnerT = Aws::String>
115 Lens& WithOwner(OwnerT&& value) {
116 SetOwner(std::forward<OwnerT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetShareInvitationId() const { return m_shareInvitationId; }
126 inline bool ShareInvitationIdHasBeenSet() const { return m_shareInvitationIdHasBeenSet; }
127 template <typename ShareInvitationIdT = Aws::String>
128 void SetShareInvitationId(ShareInvitationIdT&& value) {
129 m_shareInvitationIdHasBeenSet = true;
130 m_shareInvitationId = std::forward<ShareInvitationIdT>(value);
131 }
132 template <typename ShareInvitationIdT = Aws::String>
133 Lens& WithShareInvitationId(ShareInvitationIdT&& value) {
134 SetShareInvitationId(std::forward<ShareInvitationIdT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
146 void SetTags(TagsT&& value) {
147 m_tagsHasBeenSet = true;
148 m_tags = std::forward<TagsT>(value);
149 }
150 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 Lens& WithTags(TagsT&& value) {
152 SetTags(std::forward<TagsT>(value));
153 return *this;
154 }
155 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
156 Lens& AddTags(TagsKeyT&& key, TagsValueT&& value) {
157 m_tagsHasBeenSet = true;
158 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_lensArn;
164 bool m_lensArnHasBeenSet = false;
165
166 Aws::String m_lensVersion;
167 bool m_lensVersionHasBeenSet = false;
168
169 Aws::String m_name;
170 bool m_nameHasBeenSet = false;
171
172 Aws::String m_description;
173 bool m_descriptionHasBeenSet = false;
174
175 Aws::String m_owner;
176 bool m_ownerHasBeenSet = false;
177
178 Aws::String m_shareInvitationId;
179 bool m_shareInvitationIdHasBeenSet = false;
180
182 bool m_tagsHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace WellArchitected
187} // namespace Aws
Lens & WithDescription(DescriptionT &&value)
Definition Lens.h:97
void SetLensArn(LensArnT &&value)
Definition Lens.h:42
void SetShareInvitationId(ShareInvitationIdT &&value)
Definition Lens.h:128
Lens & WithTags(TagsT &&value)
Definition Lens.h:151
Lens & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Lens.h:156
AWS_WELLARCHITECTED_API Lens & operator=(Aws::Utils::Json::JsonView jsonValue)
Lens & WithLensArn(LensArnT &&value)
Definition Lens.h:47
void SetOwner(OwnerT &&value)
Definition Lens.h:110
const Aws::String & GetDescription() const
Definition Lens.h:89
void SetName(NameT &&value)
Definition Lens.h:76
const Aws::String & GetOwner() const
Definition Lens.h:107
void SetDescription(DescriptionT &&value)
Definition Lens.h:92
const Aws::String & GetLensVersion() const
Definition Lens.h:57
const Aws::String & GetShareInvitationId() const
Definition Lens.h:125
Lens & WithLensVersion(LensVersionT &&value)
Definition Lens.h:65
Lens & WithOwner(OwnerT &&value)
Definition Lens.h:115
AWS_WELLARCHITECTED_API Lens()=default
Lens & WithName(NameT &&value)
Definition Lens.h:81
Lens & WithShareInvitationId(ShareInvitationIdT &&value)
Definition Lens.h:133
bool ShareInvitationIdHasBeenSet() const
Definition Lens.h:126
bool LensVersionHasBeenSet() const
Definition Lens.h:58
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
bool LensArnHasBeenSet() const
Definition Lens.h:40
const Aws::String & GetName() const
Definition Lens.h:73
AWS_WELLARCHITECTED_API Lens(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Lens.h:143
const Aws::String & GetLensArn() const
Definition Lens.h:39
void SetLensVersion(LensVersionT &&value)
Definition Lens.h:60
void SetTags(TagsT &&value)
Definition Lens.h:146
bool DescriptionHasBeenSet() const
Definition Lens.h:90
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