AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAssessmentId(const Aws::String& value) { m_assessmentIdHasBeenSet = true; m_assessmentId = value; }
46 inline void SetAssessmentId(Aws::String&& value) { m_assessmentIdHasBeenSet = true; m_assessmentId = std::move(value); }
47 inline void SetAssessmentId(const char* value) { m_assessmentIdHasBeenSet = true; m_assessmentId.assign(value); }
48 inline UpdateAssessmentRequest& WithAssessmentId(const Aws::String& value) { SetAssessmentId(value); return *this;}
49 inline UpdateAssessmentRequest& WithAssessmentId(Aws::String&& value) { SetAssessmentId(std::move(value)); return *this;}
50 inline UpdateAssessmentRequest& WithAssessmentId(const char* value) { SetAssessmentId(value); return *this;}
52
54
57 inline const Aws::String& GetAssessmentName() const{ return m_assessmentName; }
58 inline bool AssessmentNameHasBeenSet() const { return m_assessmentNameHasBeenSet; }
59 inline void SetAssessmentName(const Aws::String& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = value; }
60 inline void SetAssessmentName(Aws::String&& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = std::move(value); }
61 inline void SetAssessmentName(const char* value) { m_assessmentNameHasBeenSet = true; m_assessmentName.assign(value); }
62 inline UpdateAssessmentRequest& WithAssessmentName(const Aws::String& value) { SetAssessmentName(value); return *this;}
63 inline UpdateAssessmentRequest& WithAssessmentName(Aws::String&& value) { SetAssessmentName(std::move(value)); return *this;}
64 inline UpdateAssessmentRequest& WithAssessmentName(const char* value) { SetAssessmentName(value); return *this;}
66
68
71 inline const Aws::String& GetAssessmentDescription() const{ return m_assessmentDescription; }
72 inline bool AssessmentDescriptionHasBeenSet() const { return m_assessmentDescriptionHasBeenSet; }
73 inline void SetAssessmentDescription(const Aws::String& value) { m_assessmentDescriptionHasBeenSet = true; m_assessmentDescription = value; }
74 inline void SetAssessmentDescription(Aws::String&& value) { m_assessmentDescriptionHasBeenSet = true; m_assessmentDescription = std::move(value); }
75 inline void SetAssessmentDescription(const char* value) { m_assessmentDescriptionHasBeenSet = true; m_assessmentDescription.assign(value); }
78 inline UpdateAssessmentRequest& WithAssessmentDescription(const char* value) { SetAssessmentDescription(value); return *this;}
80
82
85 inline const Scope& GetScope() const{ return m_scope; }
86 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
87 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
88 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
89 inline UpdateAssessmentRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
90 inline UpdateAssessmentRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
92
94
98 inline const AssessmentReportsDestination& GetAssessmentReportsDestination() const{ return m_assessmentReportsDestination; }
99 inline bool AssessmentReportsDestinationHasBeenSet() const { return m_assessmentReportsDestinationHasBeenSet; }
100 inline void SetAssessmentReportsDestination(const AssessmentReportsDestination& value) { m_assessmentReportsDestinationHasBeenSet = true; m_assessmentReportsDestination = value; }
101 inline void SetAssessmentReportsDestination(AssessmentReportsDestination&& value) { m_assessmentReportsDestinationHasBeenSet = true; m_assessmentReportsDestination = std::move(value); }
105
107
110 inline const Aws::Vector<Role>& GetRoles() const{ return m_roles; }
111 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
112 inline void SetRoles(const Aws::Vector<Role>& value) { m_rolesHasBeenSet = true; m_roles = value; }
113 inline void SetRoles(Aws::Vector<Role>&& value) { m_rolesHasBeenSet = true; m_roles = std::move(value); }
114 inline UpdateAssessmentRequest& WithRoles(const Aws::Vector<Role>& value) { SetRoles(value); return *this;}
115 inline UpdateAssessmentRequest& WithRoles(Aws::Vector<Role>&& value) { SetRoles(std::move(value)); return *this;}
116 inline UpdateAssessmentRequest& AddRoles(const Role& value) { m_rolesHasBeenSet = true; m_roles.push_back(value); return *this; }
117 inline UpdateAssessmentRequest& AddRoles(Role&& value) { m_rolesHasBeenSet = true; m_roles.push_back(std::move(value)); return *this; }
119 private:
120
121 Aws::String m_assessmentId;
122 bool m_assessmentIdHasBeenSet = false;
123
124 Aws::String m_assessmentName;
125 bool m_assessmentNameHasBeenSet = false;
126
127 Aws::String m_assessmentDescription;
128 bool m_assessmentDescriptionHasBeenSet = false;
129
130 Scope m_scope;
131 bool m_scopeHasBeenSet = false;
132
133 AssessmentReportsDestination m_assessmentReportsDestination;
134 bool m_assessmentReportsDestinationHasBeenSet = false;
135
136 Aws::Vector<Role> m_roles;
137 bool m_rolesHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace AuditManager
142} // namespace Aws
UpdateAssessmentRequest & WithAssessmentId(const Aws::String &value)
UpdateAssessmentRequest & WithScope(Scope &&value)
virtual const char * GetServiceRequestName() const override
void SetAssessmentReportsDestination(AssessmentReportsDestination &&value)
UpdateAssessmentRequest & AddRoles(const Role &value)
UpdateAssessmentRequest & WithAssessmentId(const char *value)
UpdateAssessmentRequest & WithScope(const Scope &value)
UpdateAssessmentRequest & WithAssessmentName(const Aws::String &value)
UpdateAssessmentRequest & WithAssessmentName(const char *value)
UpdateAssessmentRequest & WithAssessmentDescription(Aws::String &&value)
UpdateAssessmentRequest & AddRoles(Role &&value)
UpdateAssessmentRequest & WithAssessmentDescription(const char *value)
UpdateAssessmentRequest & WithAssessmentId(Aws::String &&value)
UpdateAssessmentRequest & WithRoles(const Aws::Vector< Role > &value)
UpdateAssessmentRequest & WithAssessmentReportsDestination(const AssessmentReportsDestination &value)
void SetAssessmentReportsDestination(const AssessmentReportsDestination &value)
UpdateAssessmentRequest & WithAssessmentReportsDestination(AssessmentReportsDestination &&value)
const AssessmentReportsDestination & GetAssessmentReportsDestination() const
AWS_AUDITMANAGER_API Aws::String SerializePayload() const override
UpdateAssessmentRequest & WithRoles(Aws::Vector< Role > &&value)
UpdateAssessmentRequest & WithAssessmentDescription(const Aws::String &value)
UpdateAssessmentRequest & WithAssessmentName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector