AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateReviewTemplateRequest.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/wellarchitected/WellArchitectedRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace WellArchitected
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_WELLARCHITECTED_API CreateReviewTemplateRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateReviewTemplate"; }
34
35 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetTemplateName() const { return m_templateName; }
43 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
44 template<typename TemplateNameT = Aws::String>
45 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
46 template<typename TemplateNameT = Aws::String>
47 CreateReviewTemplateRequest& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetDescription() const { return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 template<typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
58 template<typename DescriptionT = Aws::String>
59 CreateReviewTemplateRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
61
63
66 inline const Aws::Vector<Aws::String>& GetLenses() const { return m_lenses; }
67 inline bool LensesHasBeenSet() const { return m_lensesHasBeenSet; }
68 template<typename LensesT = Aws::Vector<Aws::String>>
69 void SetLenses(LensesT&& value) { m_lensesHasBeenSet = true; m_lenses = std::forward<LensesT>(value); }
70 template<typename LensesT = Aws::Vector<Aws::String>>
71 CreateReviewTemplateRequest& WithLenses(LensesT&& value) { SetLenses(std::forward<LensesT>(value)); return *this;}
72 template<typename LensesT = Aws::String>
73 CreateReviewTemplateRequest& AddLenses(LensesT&& value) { m_lensesHasBeenSet = true; m_lenses.emplace_back(std::forward<LensesT>(value)); return *this; }
75
77
78 inline const Aws::String& GetNotes() const { return m_notes; }
79 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
80 template<typename NotesT = Aws::String>
81 void SetNotes(NotesT&& value) { m_notesHasBeenSet = true; m_notes = std::forward<NotesT>(value); }
82 template<typename NotesT = Aws::String>
83 CreateReviewTemplateRequest& WithNotes(NotesT&& value) { SetNotes(std::forward<NotesT>(value)); return *this;}
85
87
90 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
93 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
94 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
95 CreateReviewTemplateRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
96 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
97 CreateReviewTemplateRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
98 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
99 }
101
103
104 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
105 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
106 template<typename ClientRequestTokenT = Aws::String>
107 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
108 template<typename ClientRequestTokenT = Aws::String>
109 CreateReviewTemplateRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
111 private:
112
113 Aws::String m_templateName;
114 bool m_templateNameHasBeenSet = false;
115
116 Aws::String m_description;
117 bool m_descriptionHasBeenSet = false;
118
120 bool m_lensesHasBeenSet = false;
121
122 Aws::String m_notes;
123 bool m_notesHasBeenSet = false;
124
126 bool m_tagsHasBeenSet = false;
127
128 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
129 bool m_clientRequestTokenHasBeenSet = true;
130 };
131
132} // namespace Model
133} // namespace WellArchitected
134} // 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
CreateReviewTemplateRequest & WithNotes(NotesT &&value)
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