AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
UpdateAssessmentRequest.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/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace AuditManager {
19namespace Model {
20
24 public:
25 AWS_AUDITMANAGER_API UpdateAssessmentRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateAssessment"; }
32
33 AWS_AUDITMANAGER_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetAssessmentId() const { return m_assessmentId; }
40 inline bool AssessmentIdHasBeenSet() const { return m_assessmentIdHasBeenSet; }
41 template <typename AssessmentIdT = Aws::String>
42 void SetAssessmentId(AssessmentIdT&& value) {
43 m_assessmentIdHasBeenSet = true;
44 m_assessmentId = std::forward<AssessmentIdT>(value);
45 }
46 template <typename AssessmentIdT = Aws::String>
47 UpdateAssessmentRequest& WithAssessmentId(AssessmentIdT&& value) {
48 SetAssessmentId(std::forward<AssessmentIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAssessmentName() const { return m_assessmentName; }
58 inline bool AssessmentNameHasBeenSet() const { return m_assessmentNameHasBeenSet; }
59 template <typename AssessmentNameT = Aws::String>
60 void SetAssessmentName(AssessmentNameT&& value) {
61 m_assessmentNameHasBeenSet = true;
62 m_assessmentName = std::forward<AssessmentNameT>(value);
63 }
64 template <typename AssessmentNameT = Aws::String>
65 UpdateAssessmentRequest& WithAssessmentName(AssessmentNameT&& value) {
66 SetAssessmentName(std::forward<AssessmentNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetAssessmentDescription() const { return m_assessmentDescription; }
76 inline bool AssessmentDescriptionHasBeenSet() const { return m_assessmentDescriptionHasBeenSet; }
77 template <typename AssessmentDescriptionT = Aws::String>
78 void SetAssessmentDescription(AssessmentDescriptionT&& value) {
79 m_assessmentDescriptionHasBeenSet = true;
80 m_assessmentDescription = std::forward<AssessmentDescriptionT>(value);
81 }
82 template <typename AssessmentDescriptionT = Aws::String>
83 UpdateAssessmentRequest& WithAssessmentDescription(AssessmentDescriptionT&& value) {
84 SetAssessmentDescription(std::forward<AssessmentDescriptionT>(value));
85 return *this;
86 }
88
90
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
112 inline const AssessmentReportsDestination& GetAssessmentReportsDestination() const { return m_assessmentReportsDestination; }
113 inline bool AssessmentReportsDestinationHasBeenSet() const { return m_assessmentReportsDestinationHasBeenSet; }
114 template <typename AssessmentReportsDestinationT = AssessmentReportsDestination>
115 void SetAssessmentReportsDestination(AssessmentReportsDestinationT&& value) {
116 m_assessmentReportsDestinationHasBeenSet = true;
117 m_assessmentReportsDestination = std::forward<AssessmentReportsDestinationT>(value);
118 }
119 template <typename AssessmentReportsDestinationT = AssessmentReportsDestination>
120 UpdateAssessmentRequest& WithAssessmentReportsDestination(AssessmentReportsDestinationT&& value) {
121 SetAssessmentReportsDestination(std::forward<AssessmentReportsDestinationT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Vector<Role>& GetRoles() const { return m_roles; }
131 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
132 template <typename RolesT = Aws::Vector<Role>>
133 void SetRoles(RolesT&& value) {
134 m_rolesHasBeenSet = true;
135 m_roles = std::forward<RolesT>(value);
136 }
137 template <typename RolesT = Aws::Vector<Role>>
139 SetRoles(std::forward<RolesT>(value));
140 return *this;
141 }
142 template <typename RolesT = Role>
144 m_rolesHasBeenSet = true;
145 m_roles.emplace_back(std::forward<RolesT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_assessmentId;
151
152 Aws::String m_assessmentName;
153
154 Aws::String m_assessmentDescription;
155
156 Scope m_scope;
157
158 AssessmentReportsDestination m_assessmentReportsDestination;
159
160 Aws::Vector<Role> m_roles;
161 bool m_assessmentIdHasBeenSet = false;
162 bool m_assessmentNameHasBeenSet = false;
163 bool m_assessmentDescriptionHasBeenSet = false;
164 bool m_scopeHasBeenSet = false;
165 bool m_assessmentReportsDestinationHasBeenSet = false;
166 bool m_rolesHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace AuditManager
171} // namespace Aws
void SetAssessmentDescription(AssessmentDescriptionT &&value)
virtual const char * GetServiceRequestName() const override
UpdateAssessmentRequest & WithScope(ScopeT &&value)
void SetAssessmentReportsDestination(AssessmentReportsDestinationT &&value)
AWS_AUDITMANAGER_API UpdateAssessmentRequest()=default
UpdateAssessmentRequest & WithAssessmentReportsDestination(AssessmentReportsDestinationT &&value)
UpdateAssessmentRequest & AddRoles(RolesT &&value)
const AssessmentReportsDestination & GetAssessmentReportsDestination() const
AWS_AUDITMANAGER_API Aws::String SerializePayload() const override
UpdateAssessmentRequest & WithAssessmentDescription(AssessmentDescriptionT &&value)
UpdateAssessmentRequest & WithAssessmentId(AssessmentIdT &&value)
UpdateAssessmentRequest & WithRoles(RolesT &&value)
UpdateAssessmentRequest & WithAssessmentName(AssessmentNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector