AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateAssessmentRequest.h
1
6#pragma once
7#include <aws/auditmanager/AuditManagerRequest.h>
8#include <aws/auditmanager/AuditManager_EXPORTS.h>
9#include <aws/auditmanager/model/AssessmentReportsDestination.h>
10#include <aws/auditmanager/model/Role.h>
11#include <aws/auditmanager/model/Scope.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace AuditManager {
20namespace Model {
21
25 public:
26 AWS_AUDITMANAGER_API CreateAssessmentRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateAssessment"; }
33
34 AWS_AUDITMANAGER_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
77 inline const AssessmentReportsDestination& GetAssessmentReportsDestination() const { return m_assessmentReportsDestination; }
78 inline bool AssessmentReportsDestinationHasBeenSet() const { return m_assessmentReportsDestinationHasBeenSet; }
79 template <typename AssessmentReportsDestinationT = AssessmentReportsDestination>
80 void SetAssessmentReportsDestination(AssessmentReportsDestinationT&& value) {
81 m_assessmentReportsDestinationHasBeenSet = true;
82 m_assessmentReportsDestination = std::forward<AssessmentReportsDestinationT>(value);
83 }
84 template <typename AssessmentReportsDestinationT = AssessmentReportsDestination>
85 CreateAssessmentRequest& WithAssessmentReportsDestination(AssessmentReportsDestinationT&& value) {
86 SetAssessmentReportsDestination(std::forward<AssessmentReportsDestinationT>(value));
87 return *this;
88 }
90
92
93 inline const Scope& GetScope() const { return m_scope; }
94 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
95 template <typename ScopeT = Scope>
96 void SetScope(ScopeT&& value) {
97 m_scopeHasBeenSet = true;
98 m_scope = std::forward<ScopeT>(value);
99 }
100 template <typename ScopeT = Scope>
102 SetScope(std::forward<ScopeT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Vector<Role>& GetRoles() const { return m_roles; }
112 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
113 template <typename RolesT = Aws::Vector<Role>>
114 void SetRoles(RolesT&& value) {
115 m_rolesHasBeenSet = true;
116 m_roles = std::forward<RolesT>(value);
117 }
118 template <typename RolesT = Aws::Vector<Role>>
120 SetRoles(std::forward<RolesT>(value));
121 return *this;
122 }
123 template <typename RolesT = Role>
125 m_rolesHasBeenSet = true;
126 m_roles.emplace_back(std::forward<RolesT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::String& GetFrameworkId() const { return m_frameworkId; }
137 inline bool FrameworkIdHasBeenSet() const { return m_frameworkIdHasBeenSet; }
138 template <typename FrameworkIdT = Aws::String>
139 void SetFrameworkId(FrameworkIdT&& value) {
140 m_frameworkIdHasBeenSet = true;
141 m_frameworkId = std::forward<FrameworkIdT>(value);
142 }
143 template <typename FrameworkIdT = Aws::String>
145 SetFrameworkId(std::forward<FrameworkIdT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
156 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
157 void SetTags(TagsT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags = std::forward<TagsT>(value);
160 }
161 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
163 SetTags(std::forward<TagsT>(value));
164 return *this;
165 }
166 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
167 CreateAssessmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
168 m_tagsHasBeenSet = true;
169 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
170 return *this;
171 }
173 private:
174 Aws::String m_name;
175
176 Aws::String m_description;
177
178 AssessmentReportsDestination m_assessmentReportsDestination;
179
180 Scope m_scope;
181
182 Aws::Vector<Role> m_roles;
183
184 Aws::String m_frameworkId;
185
187 bool m_nameHasBeenSet = false;
188 bool m_descriptionHasBeenSet = false;
189 bool m_assessmentReportsDestinationHasBeenSet = false;
190 bool m_scopeHasBeenSet = false;
191 bool m_rolesHasBeenSet = false;
192 bool m_frameworkIdHasBeenSet = false;
193 bool m_tagsHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace AuditManager
198} // namespace Aws
AWS_AUDITMANAGER_API CreateAssessmentRequest()=default
CreateAssessmentRequest & WithRoles(RolesT &&value)
const AssessmentReportsDestination & GetAssessmentReportsDestination() const
CreateAssessmentRequest & WithFrameworkId(FrameworkIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAssessmentRequest & WithTags(TagsT &&value)
void SetAssessmentReportsDestination(AssessmentReportsDestinationT &&value)
CreateAssessmentRequest & WithScope(ScopeT &&value)
AWS_AUDITMANAGER_API Aws::String SerializePayload() const override
CreateAssessmentRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
CreateAssessmentRequest & AddRoles(RolesT &&value)
CreateAssessmentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAssessmentRequest & WithAssessmentReportsDestination(AssessmentReportsDestinationT &&value)
CreateAssessmentRequest & WithDescription(DescriptionT &&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