AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
DetectionRuleOrgConfiguration.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/GuardDuty_EXPORTS.h>
11#include <aws/guardduty/model/AssociationMode.h>
12#include <aws/guardduty/model/DetectionRuleConfigurationStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty {
24namespace Model {
25
33 public:
34 AWS_GUARDDUTY_API DetectionRuleOrgConfiguration() = default;
37 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetRuleId() const { return m_ruleId; }
44 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
45 template <typename RuleIdT = Aws::String>
46 void SetRuleId(RuleIdT&& value) {
47 m_ruleIdHasBeenSet = true;
48 m_ruleId = std::forward<RuleIdT>(value);
49 }
50 template <typename RuleIdT = Aws::String>
52 SetRuleId(std::forward<RuleIdT>(value));
53 return *this;
54 }
56
58
62 inline AssociationMode GetMode() const { return m_mode; }
63 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
64 inline void SetMode(AssociationMode value) {
65 m_modeHasBeenSet = true;
66 m_mode = value;
67 }
69 SetMode(value);
70 return *this;
71 }
73
75
79 inline DetectionRuleConfigurationStatus GetStatus() const { return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
82 m_statusHasBeenSet = true;
83 m_status = value;
84 }
86 SetStatus(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
96 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
97 template <typename StatusReasonT = Aws::String>
98 void SetStatusReason(StatusReasonT&& value) {
99 m_statusReasonHasBeenSet = true;
100 m_statusReason = std::forward<StatusReasonT>(value);
101 }
102 template <typename StatusReasonT = Aws::String>
104 SetStatusReason(std::forward<StatusReasonT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Vector<Aws::String>& GetIncludeAccountIds() const { return m_includeAccountIds; }
115 inline bool IncludeAccountIdsHasBeenSet() const { return m_includeAccountIdsHasBeenSet; }
116 template <typename IncludeAccountIdsT = Aws::Vector<Aws::String>>
117 void SetIncludeAccountIds(IncludeAccountIdsT&& value) {
118 m_includeAccountIdsHasBeenSet = true;
119 m_includeAccountIds = std::forward<IncludeAccountIdsT>(value);
120 }
121 template <typename IncludeAccountIdsT = Aws::Vector<Aws::String>>
123 SetIncludeAccountIds(std::forward<IncludeAccountIdsT>(value));
124 return *this;
125 }
126 template <typename IncludeAccountIdsT = Aws::String>
128 m_includeAccountIdsHasBeenSet = true;
129 m_includeAccountIds.emplace_back(std::forward<IncludeAccountIdsT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::Vector<Aws::String>& GetExcludeAccountIds() const { return m_excludeAccountIds; }
140 inline bool ExcludeAccountIdsHasBeenSet() const { return m_excludeAccountIdsHasBeenSet; }
141 template <typename ExcludeAccountIdsT = Aws::Vector<Aws::String>>
142 void SetExcludeAccountIds(ExcludeAccountIdsT&& value) {
143 m_excludeAccountIdsHasBeenSet = true;
144 m_excludeAccountIds = std::forward<ExcludeAccountIdsT>(value);
145 }
146 template <typename ExcludeAccountIdsT = Aws::Vector<Aws::String>>
148 SetExcludeAccountIds(std::forward<ExcludeAccountIdsT>(value));
149 return *this;
150 }
151 template <typename ExcludeAccountIdsT = Aws::String>
153 m_excludeAccountIdsHasBeenSet = true;
154 m_excludeAccountIds.emplace_back(std::forward<ExcludeAccountIdsT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
164 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
165 template <typename CreatedAtT = Aws::Utils::DateTime>
166 void SetCreatedAt(CreatedAtT&& value) {
167 m_createdAtHasBeenSet = true;
168 m_createdAt = std::forward<CreatedAtT>(value);
169 }
170 template <typename CreatedAtT = Aws::Utils::DateTime>
172 SetCreatedAt(std::forward<CreatedAtT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
182 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
183 template <typename UpdatedAtT = Aws::Utils::DateTime>
184 void SetUpdatedAt(UpdatedAtT&& value) {
185 m_updatedAtHasBeenSet = true;
186 m_updatedAt = std::forward<UpdatedAtT>(value);
187 }
188 template <typename UpdatedAtT = Aws::Utils::DateTime>
190 SetUpdatedAt(std::forward<UpdatedAtT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
200 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
201 template <typename ExpiresAtT = Aws::Utils::DateTime>
202 void SetExpiresAt(ExpiresAtT&& value) {
203 m_expiresAtHasBeenSet = true;
204 m_expiresAt = std::forward<ExpiresAtT>(value);
205 }
206 template <typename ExpiresAtT = Aws::Utils::DateTime>
208 SetExpiresAt(std::forward<ExpiresAtT>(value));
209 return *this;
210 }
212 private:
213 Aws::String m_ruleId;
214
216
218
219 Aws::String m_statusReason;
220
221 Aws::Vector<Aws::String> m_includeAccountIds;
222
223 Aws::Vector<Aws::String> m_excludeAccountIds;
224
225 Aws::Utils::DateTime m_createdAt{};
226
227 Aws::Utils::DateTime m_updatedAt{};
228
229 Aws::Utils::DateTime m_expiresAt{};
230 bool m_ruleIdHasBeenSet = false;
231 bool m_modeHasBeenSet = false;
232 bool m_statusHasBeenSet = false;
233 bool m_statusReasonHasBeenSet = false;
234 bool m_includeAccountIdsHasBeenSet = false;
235 bool m_excludeAccountIdsHasBeenSet = false;
236 bool m_createdAtHasBeenSet = false;
237 bool m_updatedAtHasBeenSet = false;
238 bool m_expiresAtHasBeenSet = false;
239};
240
241} // namespace Model
242} // namespace GuardDuty
243} // namespace Aws
const Aws::Vector< Aws::String > & GetExcludeAccountIds() const
AWS_GUARDDUTY_API DetectionRuleOrgConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DetectionRuleOrgConfiguration & AddExcludeAccountIds(ExcludeAccountIdsT &&value)
DetectionRuleOrgConfiguration & WithStatusReason(StatusReasonT &&value)
DetectionRuleOrgConfiguration & AddIncludeAccountIds(IncludeAccountIdsT &&value)
AWS_GUARDDUTY_API DetectionRuleOrgConfiguration(Aws::Utils::Json::JsonView jsonValue)
DetectionRuleOrgConfiguration & WithUpdatedAt(UpdatedAtT &&value)
DetectionRuleOrgConfiguration & WithRuleId(RuleIdT &&value)
void SetStatus(DetectionRuleConfigurationStatus value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
DetectionRuleOrgConfiguration & WithMode(AssociationMode value)
AWS_GUARDDUTY_API DetectionRuleOrgConfiguration()=default
DetectionRuleOrgConfiguration & WithCreatedAt(CreatedAtT &&value)
DetectionRuleOrgConfiguration & WithIncludeAccountIds(IncludeAccountIdsT &&value)
DetectionRuleOrgConfiguration & WithExcludeAccountIds(ExcludeAccountIdsT &&value)
DetectionRuleOrgConfiguration & WithStatus(DetectionRuleConfigurationStatus value)
const Aws::Vector< Aws::String > & GetIncludeAccountIds() const
DetectionRuleOrgConfiguration & WithExpiresAt(ExpiresAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue