AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateAssessmentRequest.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/auditmanager/AuditManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/auditmanager/model/Scope.h>
11#include <aws/auditmanager/model/AssessmentReportsDestination.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/auditmanager/model/Role.h>
14#include <utility>
15
16namespace Aws
17{
18namespace AuditManager
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_AUDITMANAGER_API UpdateAssessmentRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateAssessment"; }
35
36 AWS_AUDITMANAGER_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetAssessmentId() const { return m_assessmentId; }
44 inline bool AssessmentIdHasBeenSet() const { return m_assessmentIdHasBeenSet; }
45 template<typename AssessmentIdT = Aws::String>
46 void SetAssessmentId(AssessmentIdT&& value) { m_assessmentIdHasBeenSet = true; m_assessmentId = std::forward<AssessmentIdT>(value); }
47 template<typename AssessmentIdT = Aws::String>
48 UpdateAssessmentRequest& WithAssessmentId(AssessmentIdT&& value) { SetAssessmentId(std::forward<AssessmentIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetAssessmentName() const { return m_assessmentName; }
56 inline bool AssessmentNameHasBeenSet() const { return m_assessmentNameHasBeenSet; }
57 template<typename AssessmentNameT = Aws::String>
58 void SetAssessmentName(AssessmentNameT&& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = std::forward<AssessmentNameT>(value); }
59 template<typename AssessmentNameT = Aws::String>
60 UpdateAssessmentRequest& WithAssessmentName(AssessmentNameT&& value) { SetAssessmentName(std::forward<AssessmentNameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetAssessmentDescription() const { return m_assessmentDescription; }
68 inline bool AssessmentDescriptionHasBeenSet() const { return m_assessmentDescriptionHasBeenSet; }
69 template<typename AssessmentDescriptionT = Aws::String>
70 void SetAssessmentDescription(AssessmentDescriptionT&& value) { m_assessmentDescriptionHasBeenSet = true; m_assessmentDescription = std::forward<AssessmentDescriptionT>(value); }
71 template<typename AssessmentDescriptionT = Aws::String>
72 UpdateAssessmentRequest& WithAssessmentDescription(AssessmentDescriptionT&& value) { SetAssessmentDescription(std::forward<AssessmentDescriptionT>(value)); return *this;}
74
76
79 inline const Scope& GetScope() const { return m_scope; }
80 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
81 template<typename ScopeT = Scope>
82 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
83 template<typename ScopeT = Scope>
84 UpdateAssessmentRequest& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
86
88
92 inline const AssessmentReportsDestination& GetAssessmentReportsDestination() const { return m_assessmentReportsDestination; }
93 inline bool AssessmentReportsDestinationHasBeenSet() const { return m_assessmentReportsDestinationHasBeenSet; }
94 template<typename AssessmentReportsDestinationT = AssessmentReportsDestination>
95 void SetAssessmentReportsDestination(AssessmentReportsDestinationT&& value) { m_assessmentReportsDestinationHasBeenSet = true; m_assessmentReportsDestination = std::forward<AssessmentReportsDestinationT>(value); }
96 template<typename AssessmentReportsDestinationT = AssessmentReportsDestination>
97 UpdateAssessmentRequest& WithAssessmentReportsDestination(AssessmentReportsDestinationT&& value) { SetAssessmentReportsDestination(std::forward<AssessmentReportsDestinationT>(value)); return *this;}
99
101
104 inline const Aws::Vector<Role>& GetRoles() const { return m_roles; }
105 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
106 template<typename RolesT = Aws::Vector<Role>>
107 void SetRoles(RolesT&& value) { m_rolesHasBeenSet = true; m_roles = std::forward<RolesT>(value); }
108 template<typename RolesT = Aws::Vector<Role>>
109 UpdateAssessmentRequest& WithRoles(RolesT&& value) { SetRoles(std::forward<RolesT>(value)); return *this;}
110 template<typename RolesT = Role>
111 UpdateAssessmentRequest& AddRoles(RolesT&& value) { m_rolesHasBeenSet = true; m_roles.emplace_back(std::forward<RolesT>(value)); return *this; }
113 private:
114
115 Aws::String m_assessmentId;
116 bool m_assessmentIdHasBeenSet = false;
117
118 Aws::String m_assessmentName;
119 bool m_assessmentNameHasBeenSet = false;
120
121 Aws::String m_assessmentDescription;
122 bool m_assessmentDescriptionHasBeenSet = false;
123
124 Scope m_scope;
125 bool m_scopeHasBeenSet = false;
126
127 AssessmentReportsDestination m_assessmentReportsDestination;
128 bool m_assessmentReportsDestinationHasBeenSet = false;
129
130 Aws::Vector<Role> m_roles;
131 bool m_rolesHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace AuditManager
136} // 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