AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateAssessmentFrameworkRequest.h
1
6#pragma once
7#include <aws/auditmanager/AuditManagerRequest.h>
8#include <aws/auditmanager/AuditManager_EXPORTS.h>
9#include <aws/auditmanager/model/CreateAssessmentFrameworkControlSet.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AuditManager {
18namespace Model {
19
23 public:
24 AWS_AUDITMANAGER_API CreateAssessmentFrameworkRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateAssessmentFramework"; }
31
32 AWS_AUDITMANAGER_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
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) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetComplianceType() const { return m_complianceType; }
76 inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; }
77 template <typename ComplianceTypeT = Aws::String>
78 void SetComplianceType(ComplianceTypeT&& value) {
79 m_complianceTypeHasBeenSet = true;
80 m_complianceType = std::forward<ComplianceTypeT>(value);
81 }
82 template <typename ComplianceTypeT = Aws::String>
84 SetComplianceType(std::forward<ComplianceTypeT>(value));
85 return *this;
86 }
88
90
96 inline const Aws::Vector<CreateAssessmentFrameworkControlSet>& GetControlSets() const { return m_controlSets; }
97 inline bool ControlSetsHasBeenSet() const { return m_controlSetsHasBeenSet; }
98 template <typename ControlSetsT = Aws::Vector<CreateAssessmentFrameworkControlSet>>
99 void SetControlSets(ControlSetsT&& value) {
100 m_controlSetsHasBeenSet = true;
101 m_controlSets = std::forward<ControlSetsT>(value);
102 }
103 template <typename ControlSetsT = Aws::Vector<CreateAssessmentFrameworkControlSet>>
105 SetControlSets(std::forward<ControlSetsT>(value));
106 return *this;
107 }
108 template <typename ControlSetsT = CreateAssessmentFrameworkControlSet>
110 m_controlSetsHasBeenSet = true;
111 m_controlSets.emplace_back(std::forward<ControlSetsT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
121 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
122 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 void SetTags(TagsT&& value) {
124 m_tagsHasBeenSet = true;
125 m_tags = std::forward<TagsT>(value);
126 }
127 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 SetTags(std::forward<TagsT>(value));
130 return *this;
131 }
132 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
133 CreateAssessmentFrameworkRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
134 m_tagsHasBeenSet = true;
135 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_name;
141
142 Aws::String m_description;
143
144 Aws::String m_complianceType;
145
147
149 bool m_nameHasBeenSet = false;
150 bool m_descriptionHasBeenSet = false;
151 bool m_complianceTypeHasBeenSet = false;
152 bool m_controlSetsHasBeenSet = false;
153 bool m_tagsHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace AuditManager
158} // namespace Aws
CreateAssessmentFrameworkRequest & AddControlSets(ControlSetsT &&value)
CreateAssessmentFrameworkRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_AUDITMANAGER_API CreateAssessmentFrameworkRequest()=default
const Aws::Vector< CreateAssessmentFrameworkControlSet > & GetControlSets() const
CreateAssessmentFrameworkRequest & WithControlSets(ControlSetsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAssessmentFrameworkRequest & WithDescription(DescriptionT &&value)
AWS_AUDITMANAGER_API Aws::String SerializePayload() const override
CreateAssessmentFrameworkRequest & WithComplianceType(ComplianceTypeT &&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