AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 CreateAssessmentRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template<typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
60 template<typename DescriptionT = Aws::String>
61 CreateAssessmentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
63
65
69 inline const AssessmentReportsDestination& GetAssessmentReportsDestination() const { return m_assessmentReportsDestination; }
70 inline bool AssessmentReportsDestinationHasBeenSet() const { return m_assessmentReportsDestinationHasBeenSet; }
71 template<typename AssessmentReportsDestinationT = AssessmentReportsDestination>
72 void SetAssessmentReportsDestination(AssessmentReportsDestinationT&& value) { m_assessmentReportsDestinationHasBeenSet = true; m_assessmentReportsDestination = std::forward<AssessmentReportsDestinationT>(value); }
73 template<typename AssessmentReportsDestinationT = AssessmentReportsDestination>
74 CreateAssessmentRequest& WithAssessmentReportsDestination(AssessmentReportsDestinationT&& value) { SetAssessmentReportsDestination(std::forward<AssessmentReportsDestinationT>(value)); return *this;}
76
78
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 CreateAssessmentRequest& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
86
88
91 inline const Aws::Vector<Role>& GetRoles() const { return m_roles; }
92 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
93 template<typename RolesT = Aws::Vector<Role>>
94 void SetRoles(RolesT&& value) { m_rolesHasBeenSet = true; m_roles = std::forward<RolesT>(value); }
95 template<typename RolesT = Aws::Vector<Role>>
96 CreateAssessmentRequest& WithRoles(RolesT&& value) { SetRoles(std::forward<RolesT>(value)); return *this;}
97 template<typename RolesT = Role>
98 CreateAssessmentRequest& AddRoles(RolesT&& value) { m_rolesHasBeenSet = true; m_roles.emplace_back(std::forward<RolesT>(value)); return *this; }
100
102
106 inline const Aws::String& GetFrameworkId() const { return m_frameworkId; }
107 inline bool FrameworkIdHasBeenSet() const { return m_frameworkIdHasBeenSet; }
108 template<typename FrameworkIdT = Aws::String>
109 void SetFrameworkId(FrameworkIdT&& value) { m_frameworkIdHasBeenSet = true; m_frameworkId = std::forward<FrameworkIdT>(value); }
110 template<typename FrameworkIdT = Aws::String>
111 CreateAssessmentRequest& WithFrameworkId(FrameworkIdT&& value) { SetFrameworkId(std::forward<FrameworkIdT>(value)); return *this;}
113
115
118 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
122 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 CreateAssessmentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
124 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
125 CreateAssessmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
126 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
127 }
129 private:
130
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
134 Aws::String m_description;
135 bool m_descriptionHasBeenSet = false;
136
137 AssessmentReportsDestination m_assessmentReportsDestination;
138 bool m_assessmentReportsDestinationHasBeenSet = false;
139
140 Scope m_scope;
141 bool m_scopeHasBeenSet = false;
142
143 Aws::Vector<Role> m_roles;
144 bool m_rolesHasBeenSet = false;
145
146 Aws::String m_frameworkId;
147 bool m_frameworkIdHasBeenSet = false;
148
150 bool m_tagsHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace AuditManager
155} // 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