AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CreateReviewTemplateRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/wellarchitected/WellArchitectedRequest.h>
12#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
13
14#include <utility>
15
16namespace Aws {
17namespace WellArchitected {
18namespace Model {
19
23 public:
24 AWS_WELLARCHITECTED_API CreateReviewTemplateRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateReviewTemplate"; }
31
32 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetTemplateName() const { return m_templateName; }
39 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
40 template <typename TemplateNameT = Aws::String>
41 void SetTemplateName(TemplateNameT&& value) {
42 m_templateNameHasBeenSet = true;
43 m_templateName = std::forward<TemplateNameT>(value);
44 }
45 template <typename TemplateNameT = Aws::String>
47 SetTemplateName(std::forward<TemplateNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Vector<Aws::String>& GetLenses() const { return m_lenses; }
75 inline bool LensesHasBeenSet() const { return m_lensesHasBeenSet; }
76 template <typename LensesT = Aws::Vector<Aws::String>>
77 void SetLenses(LensesT&& value) {
78 m_lensesHasBeenSet = true;
79 m_lenses = std::forward<LensesT>(value);
80 }
81 template <typename LensesT = Aws::Vector<Aws::String>>
83 SetLenses(std::forward<LensesT>(value));
84 return *this;
85 }
86 template <typename LensesT = Aws::String>
88 m_lensesHasBeenSet = true;
89 m_lenses.emplace_back(std::forward<LensesT>(value));
90 return *this;
91 }
93
95
96 inline const Aws::String& GetNotes() const { return m_notes; }
97 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
98 template <typename NotesT = Aws::String>
99 void SetNotes(NotesT&& value) {
100 m_notesHasBeenSet = true;
101 m_notes = std::forward<NotesT>(value);
102 }
103 template <typename NotesT = Aws::String>
105 SetNotes(std::forward<NotesT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
117 void SetTags(TagsT&& value) {
118 m_tagsHasBeenSet = true;
119 m_tags = std::forward<TagsT>(value);
120 }
121 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 SetTags(std::forward<TagsT>(value));
124 return *this;
125 }
126 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
127 CreateReviewTemplateRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
128 m_tagsHasBeenSet = true;
129 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
130 return *this;
131 }
133
135
136 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
137 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
138 template <typename ClientRequestTokenT = Aws::String>
139 void SetClientRequestToken(ClientRequestTokenT&& value) {
140 m_clientRequestTokenHasBeenSet = true;
141 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
142 }
143 template <typename ClientRequestTokenT = Aws::String>
145 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_templateName;
151 bool m_templateNameHasBeenSet = false;
152
153 Aws::String m_description;
154 bool m_descriptionHasBeenSet = false;
155
157 bool m_lensesHasBeenSet = false;
158
159 Aws::String m_notes;
160 bool m_notesHasBeenSet = false;
161
163 bool m_tagsHasBeenSet = false;
164
165 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
166 bool m_clientRequestTokenHasBeenSet = true;
167};
168
169} // namespace Model
170} // namespace WellArchitected
171} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
AWS_WELLARCHITECTED_API CreateReviewTemplateRequest()=default
CreateReviewTemplateRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreateReviewTemplateRequest & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
CreateReviewTemplateRequest & WithTemplateName(TemplateNameT &&value)
CreateReviewTemplateRequest & AddLenses(LensesT &&value)
CreateReviewTemplateRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateReviewTemplateRequest & WithLenses(LensesT &&value)
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
std::vector< T, Aws::Allocator< T > > Vector