AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Lens.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WellArchitected
23{
24namespace Model
25{
26
32 class Lens
33 {
34 public:
35 AWS_WELLARCHITECTED_API Lens() = default;
36 AWS_WELLARCHITECTED_API Lens(Aws::Utils::Json::JsonView jsonValue);
37 AWS_WELLARCHITECTED_API Lens& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetLensArn() const { return m_lensArn; }
46 inline bool LensArnHasBeenSet() const { return m_lensArnHasBeenSet; }
47 template<typename LensArnT = Aws::String>
48 void SetLensArn(LensArnT&& value) { m_lensArnHasBeenSet = true; m_lensArn = std::forward<LensArnT>(value); }
49 template<typename LensArnT = Aws::String>
50 Lens& WithLensArn(LensArnT&& value) { SetLensArn(std::forward<LensArnT>(value)); return *this;}
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) { m_lensVersionHasBeenSet = true; m_lensVersion = std::forward<LensVersionT>(value); }
61 template<typename LensVersionT = Aws::String>
62 Lens& WithLensVersion(LensVersionT&& value) { SetLensVersion(std::forward<LensVersionT>(value)); return *this;}
64
66
67 inline const Aws::String& GetName() const { return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 template<typename NameT = Aws::String>
70 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
71 template<typename NameT = Aws::String>
72 Lens& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
74
76
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template<typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
81 template<typename DescriptionT = Aws::String>
82 Lens& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
84
86
89 inline const Aws::String& GetOwner() const { return m_owner; }
90 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
91 template<typename OwnerT = Aws::String>
92 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
93 template<typename OwnerT = Aws::String>
94 Lens& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
96
98
101 inline const Aws::String& GetShareInvitationId() const { return m_shareInvitationId; }
102 inline bool ShareInvitationIdHasBeenSet() const { return m_shareInvitationIdHasBeenSet; }
103 template<typename ShareInvitationIdT = Aws::String>
104 void SetShareInvitationId(ShareInvitationIdT&& value) { m_shareInvitationIdHasBeenSet = true; m_shareInvitationId = std::forward<ShareInvitationIdT>(value); }
105 template<typename ShareInvitationIdT = Aws::String>
106 Lens& WithShareInvitationId(ShareInvitationIdT&& value) { SetShareInvitationId(std::forward<ShareInvitationIdT>(value)); return *this;}
108
110
113 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
116 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
117 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
118 Lens& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
119 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
120 Lens& AddTags(TagsKeyT&& key, TagsValueT&& value) {
121 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
122 }
124 private:
125
126 Aws::String m_lensArn;
127 bool m_lensArnHasBeenSet = false;
128
129 Aws::String m_lensVersion;
130 bool m_lensVersionHasBeenSet = false;
131
132 Aws::String m_name;
133 bool m_nameHasBeenSet = false;
134
135 Aws::String m_description;
136 bool m_descriptionHasBeenSet = false;
137
138 Aws::String m_owner;
139 bool m_ownerHasBeenSet = false;
140
141 Aws::String m_shareInvitationId;
142 bool m_shareInvitationIdHasBeenSet = false;
143
145 bool m_tagsHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace WellArchitected
150} // namespace Aws
Lens & WithDescription(DescriptionT &&value)
Definition Lens.h:82
void SetLensArn(LensArnT &&value)
Definition Lens.h:48
void SetShareInvitationId(ShareInvitationIdT &&value)
Definition Lens.h:104
Lens & WithTags(TagsT &&value)
Definition Lens.h:118
Lens & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Lens.h:120
AWS_WELLARCHITECTED_API Lens & operator=(Aws::Utils::Json::JsonView jsonValue)
Lens & WithLensArn(LensArnT &&value)
Definition Lens.h:50
void SetOwner(OwnerT &&value)
Definition Lens.h:92
const Aws::String & GetDescription() const
Definition Lens.h:77
void SetName(NameT &&value)
Definition Lens.h:70
const Aws::String & GetOwner() const
Definition Lens.h:89
void SetDescription(DescriptionT &&value)
Definition Lens.h:80
const Aws::String & GetLensVersion() const
Definition Lens.h:57
const Aws::String & GetShareInvitationId() const
Definition Lens.h:101
Lens & WithLensVersion(LensVersionT &&value)
Definition Lens.h:62
Lens & WithOwner(OwnerT &&value)
Definition Lens.h:94
AWS_WELLARCHITECTED_API Lens()=default
Lens & WithName(NameT &&value)
Definition Lens.h:72
Lens & WithShareInvitationId(ShareInvitationIdT &&value)
Definition Lens.h:106
bool ShareInvitationIdHasBeenSet() const
Definition Lens.h:102
bool LensVersionHasBeenSet() const
Definition Lens.h:58
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
bool LensArnHasBeenSet() const
Definition Lens.h:46
const Aws::String & GetName() const
Definition Lens.h:67
AWS_WELLARCHITECTED_API Lens(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Lens.h:113
const Aws::String & GetLensArn() const
Definition Lens.h:45
void SetLensVersion(LensVersionT &&value)
Definition Lens.h:60
void SetTags(TagsT &&value)
Definition Lens.h:116
bool DescriptionHasBeenSet() const
Definition Lens.h:78
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