AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateControlRequest.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/auditmanager/model/ControlMappingSource.h>
12#include <utility>
13
14namespace Aws
15{
16namespace AuditManager
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_AUDITMANAGER_API UpdateControlRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateControl"; }
33
34 AWS_AUDITMANAGER_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetControlId() const { return m_controlId; }
42 inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; }
43 template<typename ControlIdT = Aws::String>
44 void SetControlId(ControlIdT&& value) { m_controlIdHasBeenSet = true; m_controlId = std::forward<ControlIdT>(value); }
45 template<typename ControlIdT = Aws::String>
46 UpdateControlRequest& WithControlId(ControlIdT&& value) { SetControlId(std::forward<ControlIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetName() const { return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 UpdateControlRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template<typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 UpdateControlRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
77 inline const Aws::String& GetTestingInformation() const { return m_testingInformation; }
78 inline bool TestingInformationHasBeenSet() const { return m_testingInformationHasBeenSet; }
79 template<typename TestingInformationT = Aws::String>
80 void SetTestingInformation(TestingInformationT&& value) { m_testingInformationHasBeenSet = true; m_testingInformation = std::forward<TestingInformationT>(value); }
81 template<typename TestingInformationT = Aws::String>
82 UpdateControlRequest& WithTestingInformation(TestingInformationT&& value) { SetTestingInformation(std::forward<TestingInformationT>(value)); return *this;}
84
86
89 inline const Aws::String& GetActionPlanTitle() const { return m_actionPlanTitle; }
90 inline bool ActionPlanTitleHasBeenSet() const { return m_actionPlanTitleHasBeenSet; }
91 template<typename ActionPlanTitleT = Aws::String>
92 void SetActionPlanTitle(ActionPlanTitleT&& value) { m_actionPlanTitleHasBeenSet = true; m_actionPlanTitle = std::forward<ActionPlanTitleT>(value); }
93 template<typename ActionPlanTitleT = Aws::String>
94 UpdateControlRequest& WithActionPlanTitle(ActionPlanTitleT&& value) { SetActionPlanTitle(std::forward<ActionPlanTitleT>(value)); return *this;}
96
98
101 inline const Aws::String& GetActionPlanInstructions() const { return m_actionPlanInstructions; }
102 inline bool ActionPlanInstructionsHasBeenSet() const { return m_actionPlanInstructionsHasBeenSet; }
103 template<typename ActionPlanInstructionsT = Aws::String>
104 void SetActionPlanInstructions(ActionPlanInstructionsT&& value) { m_actionPlanInstructionsHasBeenSet = true; m_actionPlanInstructions = std::forward<ActionPlanInstructionsT>(value); }
105 template<typename ActionPlanInstructionsT = Aws::String>
106 UpdateControlRequest& WithActionPlanInstructions(ActionPlanInstructionsT&& value) { SetActionPlanInstructions(std::forward<ActionPlanInstructionsT>(value)); return *this;}
108
110
113 inline const Aws::Vector<ControlMappingSource>& GetControlMappingSources() const { return m_controlMappingSources; }
114 inline bool ControlMappingSourcesHasBeenSet() const { return m_controlMappingSourcesHasBeenSet; }
115 template<typename ControlMappingSourcesT = Aws::Vector<ControlMappingSource>>
116 void SetControlMappingSources(ControlMappingSourcesT&& value) { m_controlMappingSourcesHasBeenSet = true; m_controlMappingSources = std::forward<ControlMappingSourcesT>(value); }
117 template<typename ControlMappingSourcesT = Aws::Vector<ControlMappingSource>>
118 UpdateControlRequest& WithControlMappingSources(ControlMappingSourcesT&& value) { SetControlMappingSources(std::forward<ControlMappingSourcesT>(value)); return *this;}
119 template<typename ControlMappingSourcesT = ControlMappingSource>
120 UpdateControlRequest& AddControlMappingSources(ControlMappingSourcesT&& value) { m_controlMappingSourcesHasBeenSet = true; m_controlMappingSources.emplace_back(std::forward<ControlMappingSourcesT>(value)); return *this; }
122 private:
123
124 Aws::String m_controlId;
125 bool m_controlIdHasBeenSet = false;
126
127 Aws::String m_name;
128 bool m_nameHasBeenSet = false;
129
130 Aws::String m_description;
131 bool m_descriptionHasBeenSet = false;
132
133 Aws::String m_testingInformation;
134 bool m_testingInformationHasBeenSet = false;
135
136 Aws::String m_actionPlanTitle;
137 bool m_actionPlanTitleHasBeenSet = false;
138
139 Aws::String m_actionPlanInstructions;
140 bool m_actionPlanInstructionsHasBeenSet = false;
141
142 Aws::Vector<ControlMappingSource> m_controlMappingSources;
143 bool m_controlMappingSourcesHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace AuditManager
148} // namespace Aws
UpdateControlRequest & WithTestingInformation(TestingInformationT &&value)
void SetTestingInformation(TestingInformationT &&value)
UpdateControlRequest & WithDescription(DescriptionT &&value)
UpdateControlRequest & WithControlId(ControlIdT &&value)
void SetControlMappingSources(ControlMappingSourcesT &&value)
AWS_AUDITMANAGER_API UpdateControlRequest()=default
UpdateControlRequest & WithControlMappingSources(ControlMappingSourcesT &&value)
UpdateControlRequest & WithActionPlanInstructions(ActionPlanInstructionsT &&value)
UpdateControlRequest & WithName(NameT &&value)
UpdateControlRequest & AddControlMappingSources(ControlMappingSourcesT &&value)
AWS_AUDITMANAGER_API Aws::String SerializePayload() const override
void SetActionPlanInstructions(ActionPlanInstructionsT &&value)
const Aws::Vector< ControlMappingSource > & GetControlMappingSources() const
UpdateControlRequest & WithActionPlanTitle(ActionPlanTitleT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector