AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
45 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
46 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
47 inline CreateControlRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline CreateControlRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline CreateControlRequest& WithName(const char* value) { SetName(value); return *this;}
51
53
56 inline const Aws::String& GetDescription() const{ return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
59 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
60 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
61 inline CreateControlRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
62 inline CreateControlRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
63 inline CreateControlRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
65
67
70 inline const Aws::String& GetTestingInformation() const{ return m_testingInformation; }
71 inline bool TestingInformationHasBeenSet() const { return m_testingInformationHasBeenSet; }
72 inline void SetTestingInformation(const Aws::String& value) { m_testingInformationHasBeenSet = true; m_testingInformation = value; }
73 inline void SetTestingInformation(Aws::String&& value) { m_testingInformationHasBeenSet = true; m_testingInformation = std::move(value); }
74 inline void SetTestingInformation(const char* value) { m_testingInformationHasBeenSet = true; m_testingInformation.assign(value); }
76 inline CreateControlRequest& WithTestingInformation(Aws::String&& value) { SetTestingInformation(std::move(value)); return *this;}
77 inline CreateControlRequest& WithTestingInformation(const char* value) { SetTestingInformation(value); return *this;}
79
81
84 inline const Aws::String& GetActionPlanTitle() const{ return m_actionPlanTitle; }
85 inline bool ActionPlanTitleHasBeenSet() const { return m_actionPlanTitleHasBeenSet; }
86 inline void SetActionPlanTitle(const Aws::String& value) { m_actionPlanTitleHasBeenSet = true; m_actionPlanTitle = value; }
87 inline void SetActionPlanTitle(Aws::String&& value) { m_actionPlanTitleHasBeenSet = true; m_actionPlanTitle = std::move(value); }
88 inline void SetActionPlanTitle(const char* value) { m_actionPlanTitleHasBeenSet = true; m_actionPlanTitle.assign(value); }
89 inline CreateControlRequest& WithActionPlanTitle(const Aws::String& value) { SetActionPlanTitle(value); return *this;}
90 inline CreateControlRequest& WithActionPlanTitle(Aws::String&& value) { SetActionPlanTitle(std::move(value)); return *this;}
91 inline CreateControlRequest& WithActionPlanTitle(const char* value) { SetActionPlanTitle(value); return *this;}
93
95
98 inline const Aws::String& GetActionPlanInstructions() const{ return m_actionPlanInstructions; }
99 inline bool ActionPlanInstructionsHasBeenSet() const { return m_actionPlanInstructionsHasBeenSet; }
100 inline void SetActionPlanInstructions(const Aws::String& value) { m_actionPlanInstructionsHasBeenSet = true; m_actionPlanInstructions = value; }
101 inline void SetActionPlanInstructions(Aws::String&& value) { m_actionPlanInstructionsHasBeenSet = true; m_actionPlanInstructions = std::move(value); }
102 inline void SetActionPlanInstructions(const char* value) { m_actionPlanInstructionsHasBeenSet = true; m_actionPlanInstructions.assign(value); }
105 inline CreateControlRequest& WithActionPlanInstructions(const char* value) { SetActionPlanInstructions(value); return *this;}
107
109
112 inline const Aws::Vector<CreateControlMappingSource>& GetControlMappingSources() const{ return m_controlMappingSources; }
113 inline bool ControlMappingSourcesHasBeenSet() const { return m_controlMappingSourcesHasBeenSet; }
114 inline void SetControlMappingSources(const Aws::Vector<CreateControlMappingSource>& value) { m_controlMappingSourcesHasBeenSet = true; m_controlMappingSources = value; }
115 inline void SetControlMappingSources(Aws::Vector<CreateControlMappingSource>&& value) { m_controlMappingSourcesHasBeenSet = true; m_controlMappingSources = std::move(value); }
118 inline CreateControlRequest& AddControlMappingSources(const CreateControlMappingSource& value) { m_controlMappingSourcesHasBeenSet = true; m_controlMappingSources.push_back(value); return *this; }
119 inline CreateControlRequest& AddControlMappingSources(CreateControlMappingSource&& value) { m_controlMappingSourcesHasBeenSet = true; m_controlMappingSources.push_back(std::move(value)); return *this; }
121
123
126 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
129 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
130 inline CreateControlRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
131 inline CreateControlRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
132 inline CreateControlRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
133 inline CreateControlRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
134 inline CreateControlRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
135 inline CreateControlRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
136 inline CreateControlRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
137 inline CreateControlRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
138 inline CreateControlRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
140 private:
141
142 Aws::String m_name;
143 bool m_nameHasBeenSet = false;
144
145 Aws::String m_description;
146 bool m_descriptionHasBeenSet = false;
147
148 Aws::String m_testingInformation;
149 bool m_testingInformationHasBeenSet = false;
150
151 Aws::String m_actionPlanTitle;
152 bool m_actionPlanTitleHasBeenSet = false;
153
154 Aws::String m_actionPlanInstructions;
155 bool m_actionPlanInstructionsHasBeenSet = false;
156
157 Aws::Vector<CreateControlMappingSource> m_controlMappingSources;
158 bool m_controlMappingSourcesHasBeenSet = false;
159
161 bool m_tagsHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace AuditManager
166} // namespace Aws
CreateControlRequest & WithName(Aws::String &&value)
CreateControlRequest & AddControlMappingSources(const CreateControlMappingSource &value)
CreateControlRequest & WithActionPlanTitle(const Aws::String &value)
CreateControlRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateControlRequest & WithTestingInformation(const Aws::String &value)
void SetControlMappingSources(Aws::Vector< CreateControlMappingSource > &&value)
CreateControlRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateControlRequest & AddTags(Aws::String &&key, const char *value)
AWS_AUDITMANAGER_API Aws::String SerializePayload() const override
CreateControlRequest & WithTestingInformation(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateControlRequest & WithDescription(const char *value)
void SetTestingInformation(const Aws::String &value)
CreateControlRequest & WithActionPlanTitle(const char *value)
CreateControlRequest & WithActionPlanInstructions(const char *value)
CreateControlRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateControlRequest & WithActionPlanInstructions(const Aws::String &value)
CreateControlRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateControlRequest & WithName(const Aws::String &value)
CreateControlRequest & AddControlMappingSources(CreateControlMappingSource &&value)
CreateControlRequest & WithDescription(Aws::String &&value)
void SetControlMappingSources(const Aws::Vector< CreateControlMappingSource > &value)
CreateControlRequest & WithTestingInformation(const char *value)
CreateControlRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateControlRequest & WithActionPlanInstructions(Aws::String &&value)
CreateControlRequest & WithControlMappingSources(const Aws::Vector< CreateControlMappingSource > &value)
CreateControlRequest & WithControlMappingSources(Aws::Vector< CreateControlMappingSource > &&value)
CreateControlRequest & AddTags(const char *key, Aws::String &&value)
const Aws::Vector< CreateControlMappingSource > & GetControlMappingSources() const
CreateControlRequest & WithDescription(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateControlRequest & AddTags(const char *key, const char *value)
CreateControlRequest & WithName(const char *value)
CreateControlRequest & WithActionPlanTitle(Aws::String &&value)
CreateControlRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetActionPlanInstructions(const Aws::String &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