AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateControlRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/auditmanager/model/CreateControlMappingSource.h>
13#include <utility>
14
15namespace Aws
16{
17namespace AuditManager
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_AUDITMANAGER_API CreateControlRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateControl"; }
34
35 AWS_AUDITMANAGER_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 CreateControlRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetDescription() const { return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 template<typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
58 template<typename DescriptionT = Aws::String>
59 CreateControlRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
61
63
66 inline const Aws::String& GetTestingInformation() const { return m_testingInformation; }
67 inline bool TestingInformationHasBeenSet() const { return m_testingInformationHasBeenSet; }
68 template<typename TestingInformationT = Aws::String>
69 void SetTestingInformation(TestingInformationT&& value) { m_testingInformationHasBeenSet = true; m_testingInformation = std::forward<TestingInformationT>(value); }
70 template<typename TestingInformationT = Aws::String>
71 CreateControlRequest& WithTestingInformation(TestingInformationT&& value) { SetTestingInformation(std::forward<TestingInformationT>(value)); return *this;}
73
75
78 inline const Aws::String& GetActionPlanTitle() const { return m_actionPlanTitle; }
79 inline bool ActionPlanTitleHasBeenSet() const { return m_actionPlanTitleHasBeenSet; }
80 template<typename ActionPlanTitleT = Aws::String>
81 void SetActionPlanTitle(ActionPlanTitleT&& value) { m_actionPlanTitleHasBeenSet = true; m_actionPlanTitle = std::forward<ActionPlanTitleT>(value); }
82 template<typename ActionPlanTitleT = Aws::String>
83 CreateControlRequest& WithActionPlanTitle(ActionPlanTitleT&& value) { SetActionPlanTitle(std::forward<ActionPlanTitleT>(value)); return *this;}
85
87
90 inline const Aws::String& GetActionPlanInstructions() const { return m_actionPlanInstructions; }
91 inline bool ActionPlanInstructionsHasBeenSet() const { return m_actionPlanInstructionsHasBeenSet; }
92 template<typename ActionPlanInstructionsT = Aws::String>
93 void SetActionPlanInstructions(ActionPlanInstructionsT&& value) { m_actionPlanInstructionsHasBeenSet = true; m_actionPlanInstructions = std::forward<ActionPlanInstructionsT>(value); }
94 template<typename ActionPlanInstructionsT = Aws::String>
95 CreateControlRequest& WithActionPlanInstructions(ActionPlanInstructionsT&& value) { SetActionPlanInstructions(std::forward<ActionPlanInstructionsT>(value)); return *this;}
97
99
102 inline const Aws::Vector<CreateControlMappingSource>& GetControlMappingSources() const { return m_controlMappingSources; }
103 inline bool ControlMappingSourcesHasBeenSet() const { return m_controlMappingSourcesHasBeenSet; }
104 template<typename ControlMappingSourcesT = Aws::Vector<CreateControlMappingSource>>
105 void SetControlMappingSources(ControlMappingSourcesT&& value) { m_controlMappingSourcesHasBeenSet = true; m_controlMappingSources = std::forward<ControlMappingSourcesT>(value); }
106 template<typename ControlMappingSourcesT = Aws::Vector<CreateControlMappingSource>>
107 CreateControlRequest& WithControlMappingSources(ControlMappingSourcesT&& value) { SetControlMappingSources(std::forward<ControlMappingSourcesT>(value)); return *this;}
108 template<typename ControlMappingSourcesT = CreateControlMappingSource>
109 CreateControlRequest& AddControlMappingSources(ControlMappingSourcesT&& value) { m_controlMappingSourcesHasBeenSet = true; m_controlMappingSources.emplace_back(std::forward<ControlMappingSourcesT>(value)); return *this; }
111
113
116 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
119 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
120 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 CreateControlRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
122 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
123 CreateControlRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
124 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
125 }
127 private:
128
129 Aws::String m_name;
130 bool m_nameHasBeenSet = false;
131
132 Aws::String m_description;
133 bool m_descriptionHasBeenSet = false;
134
135 Aws::String m_testingInformation;
136 bool m_testingInformationHasBeenSet = false;
137
138 Aws::String m_actionPlanTitle;
139 bool m_actionPlanTitleHasBeenSet = false;
140
141 Aws::String m_actionPlanInstructions;
142 bool m_actionPlanInstructionsHasBeenSet = false;
143
144 Aws::Vector<CreateControlMappingSource> m_controlMappingSources;
145 bool m_controlMappingSourcesHasBeenSet = false;
146
148 bool m_tagsHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace AuditManager
153} // namespace Aws
AWS_AUDITMANAGER_API CreateControlRequest()=default
CreateControlRequest & WithTestingInformation(TestingInformationT &&value)
void SetActionPlanInstructions(ActionPlanInstructionsT &&value)
AWS_AUDITMANAGER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateControlRequest & WithDescription(DescriptionT &&value)
CreateControlRequest & WithActionPlanInstructions(ActionPlanInstructionsT &&value)
CreateControlRequest & AddControlMappingSources(ControlMappingSourcesT &&value)
CreateControlRequest & WithName(NameT &&value)
CreateControlRequest & WithTags(TagsT &&value)
CreateControlRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< CreateControlMappingSource > & GetControlMappingSources() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetControlMappingSources(ControlMappingSourcesT &&value)
CreateControlRequest & WithActionPlanTitle(ActionPlanTitleT &&value)
CreateControlRequest & WithControlMappingSources(ControlMappingSourcesT &&value)
void SetTestingInformation(TestingInformationT &&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