AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
RemediationStep.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
28 public:
29 AWS_SECURITYHUB_API RemediationStep() = default;
30 AWS_SECURITYHUB_API RemediationStep(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SECURITYHUB_API RemediationStep& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline const Aws::String& GetPhase() const { return m_phase; }
40 inline bool PhaseHasBeenSet() const { return m_phaseHasBeenSet; }
41 template <typename PhaseT = Aws::String>
42 void SetPhase(PhaseT&& value) {
43 m_phaseHasBeenSet = true;
44 m_phase = std::forward<PhaseT>(value);
45 }
46 template <typename PhaseT = Aws::String>
47 RemediationStep& WithPhase(PhaseT&& value) {
48 SetPhase(std::forward<PhaseT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 RemediationStep& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetService() const { return m_service; }
76 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
77 template <typename ServiceT = Aws::String>
78 void SetService(ServiceT&& value) {
79 m_serviceHasBeenSet = true;
80 m_service = std::forward<ServiceT>(value);
81 }
82 template <typename ServiceT = Aws::String>
83 RemediationStep& WithService(ServiceT&& value) {
84 SetService(std::forward<ServiceT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetAction() const { return m_action; }
94 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
95 template <typename ActionT = Aws::String>
96 void SetAction(ActionT&& value) {
97 m_actionHasBeenSet = true;
98 m_action = std::forward<ActionT>(value);
99 }
100 template <typename ActionT = Aws::String>
101 RemediationStep& WithAction(ActionT&& value) {
102 SetAction(std::forward<ActionT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetLogic() const { return m_logic; }
112 inline bool LogicHasBeenSet() const { return m_logicHasBeenSet; }
113 template <typename LogicT = Aws::String>
114 void SetLogic(LogicT&& value) {
115 m_logicHasBeenSet = true;
116 m_logic = std::forward<LogicT>(value);
117 }
118 template <typename LogicT = Aws::String>
119 RemediationStep& WithLogic(LogicT&& value) {
120 SetLogic(std::forward<LogicT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetInverse() const { return m_inverse; }
130 inline bool InverseHasBeenSet() const { return m_inverseHasBeenSet; }
131 template <typename InverseT = Aws::String>
132 void SetInverse(InverseT&& value) {
133 m_inverseHasBeenSet = true;
134 m_inverse = std::forward<InverseT>(value);
135 }
136 template <typename InverseT = Aws::String>
137 RemediationStep& WithInverse(InverseT&& value) {
138 SetInverse(std::forward<InverseT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetVerifyAfter() const { return m_verifyAfter; }
148 inline bool VerifyAfterHasBeenSet() const { return m_verifyAfterHasBeenSet; }
149 template <typename VerifyAfterT = Aws::String>
150 void SetVerifyAfter(VerifyAfterT&& value) {
151 m_verifyAfterHasBeenSet = true;
152 m_verifyAfter = std::forward<VerifyAfterT>(value);
153 }
154 template <typename VerifyAfterT = Aws::String>
155 RemediationStep& WithVerifyAfter(VerifyAfterT&& value) {
156 SetVerifyAfter(std::forward<VerifyAfterT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_phase;
162
163 Aws::String m_description;
164
165 Aws::String m_service;
166
167 Aws::String m_action;
168
169 Aws::String m_logic;
170
171 Aws::String m_inverse;
172
173 Aws::String m_verifyAfter;
174 bool m_phaseHasBeenSet = false;
175 bool m_descriptionHasBeenSet = false;
176 bool m_serviceHasBeenSet = false;
177 bool m_actionHasBeenSet = false;
178 bool m_logicHasBeenSet = false;
179 bool m_inverseHasBeenSet = false;
180 bool m_verifyAfterHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace SecurityHub
185} // namespace Aws
void SetVerifyAfter(VerifyAfterT &&value)
AWS_SECURITYHUB_API RemediationStep()=default
RemediationStep & WithVerifyAfter(VerifyAfterT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API RemediationStep & operator=(Aws::Utils::Json::JsonView jsonValue)
RemediationStep & WithPhase(PhaseT &&value)
RemediationStep & WithDescription(DescriptionT &&value)
void SetDescription(DescriptionT &&value)
RemediationStep & WithService(ServiceT &&value)
const Aws::String & GetAction() const
const Aws::String & GetService() const
const Aws::String & GetVerifyAfter() const
AWS_SECURITYHUB_API RemediationStep(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInverse() const
RemediationStep & WithLogic(LogicT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetPhase() const
RemediationStep & WithAction(ActionT &&value)
RemediationStep & WithInverse(InverseT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue