AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAssessmentRequest.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/AssessmentReportsDestination.h>
11#include <aws/auditmanager/model/Scope.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/auditmanager/model/Role.h>
15#include <utility>
16
17namespace Aws
18{
19namespace AuditManager
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_AUDITMANAGER_API CreateAssessmentRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateAssessment"; }
36
37 AWS_AUDITMANAGER_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline CreateAssessmentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline CreateAssessmentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline CreateAssessmentRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
58 inline const Aws::String& GetDescription() const{ return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
61 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
62 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
63 inline CreateAssessmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
64 inline CreateAssessmentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
65 inline CreateAssessmentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
67
69
73 inline const AssessmentReportsDestination& GetAssessmentReportsDestination() const{ return m_assessmentReportsDestination; }
74 inline bool AssessmentReportsDestinationHasBeenSet() const { return m_assessmentReportsDestinationHasBeenSet; }
75 inline void SetAssessmentReportsDestination(const AssessmentReportsDestination& value) { m_assessmentReportsDestinationHasBeenSet = true; m_assessmentReportsDestination = value; }
76 inline void SetAssessmentReportsDestination(AssessmentReportsDestination&& value) { m_assessmentReportsDestinationHasBeenSet = true; m_assessmentReportsDestination = std::move(value); }
80
82
83 inline const Scope& GetScope() const{ return m_scope; }
84 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
85 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
86 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
87 inline CreateAssessmentRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
88 inline CreateAssessmentRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
90
92
95 inline const Aws::Vector<Role>& GetRoles() const{ return m_roles; }
96 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
97 inline void SetRoles(const Aws::Vector<Role>& value) { m_rolesHasBeenSet = true; m_roles = value; }
98 inline void SetRoles(Aws::Vector<Role>&& value) { m_rolesHasBeenSet = true; m_roles = std::move(value); }
99 inline CreateAssessmentRequest& WithRoles(const Aws::Vector<Role>& value) { SetRoles(value); return *this;}
100 inline CreateAssessmentRequest& WithRoles(Aws::Vector<Role>&& value) { SetRoles(std::move(value)); return *this;}
101 inline CreateAssessmentRequest& AddRoles(const Role& value) { m_rolesHasBeenSet = true; m_roles.push_back(value); return *this; }
102 inline CreateAssessmentRequest& AddRoles(Role&& value) { m_rolesHasBeenSet = true; m_roles.push_back(std::move(value)); return *this; }
104
106
110 inline const Aws::String& GetFrameworkId() const{ return m_frameworkId; }
111 inline bool FrameworkIdHasBeenSet() const { return m_frameworkIdHasBeenSet; }
112 inline void SetFrameworkId(const Aws::String& value) { m_frameworkIdHasBeenSet = true; m_frameworkId = value; }
113 inline void SetFrameworkId(Aws::String&& value) { m_frameworkIdHasBeenSet = true; m_frameworkId = std::move(value); }
114 inline void SetFrameworkId(const char* value) { m_frameworkIdHasBeenSet = true; m_frameworkId.assign(value); }
115 inline CreateAssessmentRequest& WithFrameworkId(const Aws::String& value) { SetFrameworkId(value); return *this;}
116 inline CreateAssessmentRequest& WithFrameworkId(Aws::String&& value) { SetFrameworkId(std::move(value)); return *this;}
117 inline CreateAssessmentRequest& WithFrameworkId(const char* value) { SetFrameworkId(value); return *this;}
119
121
124 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
127 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
128 inline CreateAssessmentRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
129 inline CreateAssessmentRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
130 inline CreateAssessmentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
131 inline CreateAssessmentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
132 inline CreateAssessmentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
133 inline CreateAssessmentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
134 inline CreateAssessmentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
135 inline CreateAssessmentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
136 inline CreateAssessmentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
138 private:
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 Aws::String m_description;
144 bool m_descriptionHasBeenSet = false;
145
146 AssessmentReportsDestination m_assessmentReportsDestination;
147 bool m_assessmentReportsDestinationHasBeenSet = false;
148
149 Scope m_scope;
150 bool m_scopeHasBeenSet = false;
151
152 Aws::Vector<Role> m_roles;
153 bool m_rolesHasBeenSet = false;
154
155 Aws::String m_frameworkId;
156 bool m_frameworkIdHasBeenSet = false;
157
159 bool m_tagsHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace AuditManager
164} // namespace Aws
CreateAssessmentRequest & WithScope(Scope &&value)
CreateAssessmentRequest & AddRoles(Role &&value)
CreateAssessmentRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateAssessmentRequest & WithName(Aws::String &&value)
CreateAssessmentRequest & WithRoles(const Aws::Vector< Role > &value)
CreateAssessmentRequest & AddRoles(const Role &value)
void SetAssessmentReportsDestination(AssessmentReportsDestination &&value)
CreateAssessmentRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateAssessmentRequest & WithRoles(Aws::Vector< Role > &&value)
CreateAssessmentRequest & AddTags(Aws::String &&key, const char *value)
CreateAssessmentRequest & WithFrameworkId(Aws::String &&value)
const AssessmentReportsDestination & GetAssessmentReportsDestination() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAssessmentRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateAssessmentRequest & AddTags(const char *key, const char *value)
CreateAssessmentRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAssessmentRequest & WithFrameworkId(const Aws::String &value)
CreateAssessmentRequest & WithDescription(const Aws::String &value)
CreateAssessmentRequest & WithName(const char *value)
void SetAssessmentReportsDestination(const AssessmentReportsDestination &value)
void SetRoles(const Aws::Vector< Role > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAssessmentRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateAssessmentRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAssessmentRequest & WithName(const Aws::String &value)
AWS_AUDITMANAGER_API Aws::String SerializePayload() const override
CreateAssessmentRequest & WithScope(const Scope &value)
CreateAssessmentRequest & WithDescription(const char *value)
virtual const char * GetServiceRequestName() const override
CreateAssessmentRequest & AddTags(const char *key, Aws::String &&value)
CreateAssessmentRequest & WithDescription(Aws::String &&value)
CreateAssessmentRequest & WithAssessmentReportsDestination(AssessmentReportsDestination &&value)
CreateAssessmentRequest & WithFrameworkId(const char *value)
CreateAssessmentRequest & WithAssessmentReportsDestination(const AssessmentReportsDestination &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