AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RuleGroupResponse.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/network-firewall/model/RuleGroupType.h>
10#include <aws/network-firewall/model/ResourceStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/network-firewall/model/EncryptionConfiguration.h>
13#include <aws/network-firewall/model/SourceMetadata.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/network-firewall/model/SummaryConfiguration.h>
16#include <aws/network-firewall/model/Tag.h>
17#include <aws/network-firewall/model/AnalysisResult.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace NetworkFirewall
31{
32namespace Model
33{
34
43 {
44 public:
45 AWS_NETWORKFIREWALL_API RuleGroupResponse() = default;
46 AWS_NETWORKFIREWALL_API RuleGroupResponse(Aws::Utils::Json::JsonView jsonValue);
47 AWS_NETWORKFIREWALL_API RuleGroupResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
58 inline const Aws::String& GetRuleGroupArn() const { return m_ruleGroupArn; }
59 inline bool RuleGroupArnHasBeenSet() const { return m_ruleGroupArnHasBeenSet; }
60 template<typename RuleGroupArnT = Aws::String>
61 void SetRuleGroupArn(RuleGroupArnT&& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = std::forward<RuleGroupArnT>(value); }
62 template<typename RuleGroupArnT = Aws::String>
63 RuleGroupResponse& WithRuleGroupArn(RuleGroupArnT&& value) { SetRuleGroupArn(std::forward<RuleGroupArnT>(value)); return *this;}
65
67
71 inline const Aws::String& GetRuleGroupName() const { return m_ruleGroupName; }
72 inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; }
73 template<typename RuleGroupNameT = Aws::String>
74 void SetRuleGroupName(RuleGroupNameT&& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = std::forward<RuleGroupNameT>(value); }
75 template<typename RuleGroupNameT = Aws::String>
76 RuleGroupResponse& WithRuleGroupName(RuleGroupNameT&& value) { SetRuleGroupName(std::forward<RuleGroupNameT>(value)); return *this;}
78
80
83 inline const Aws::String& GetRuleGroupId() const { return m_ruleGroupId; }
84 inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
85 template<typename RuleGroupIdT = Aws::String>
86 void SetRuleGroupId(RuleGroupIdT&& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = std::forward<RuleGroupIdT>(value); }
87 template<typename RuleGroupIdT = Aws::String>
88 RuleGroupResponse& WithRuleGroupId(RuleGroupIdT&& value) { SetRuleGroupId(std::forward<RuleGroupIdT>(value)); return *this;}
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 template<typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
99 template<typename DescriptionT = Aws::String>
100 RuleGroupResponse& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
102
104
109 inline RuleGroupType GetType() const { return m_type; }
110 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
111 inline void SetType(RuleGroupType value) { m_typeHasBeenSet = true; m_type = value; }
112 inline RuleGroupResponse& WithType(RuleGroupType value) { SetType(value); return *this;}
114
116
125 inline int GetCapacity() const { return m_capacity; }
126 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
127 inline void SetCapacity(int value) { m_capacityHasBeenSet = true; m_capacity = value; }
128 inline RuleGroupResponse& WithCapacity(int value) { SetCapacity(value); return *this;}
130
132
135 inline ResourceStatus GetRuleGroupStatus() const { return m_ruleGroupStatus; }
136 inline bool RuleGroupStatusHasBeenSet() const { return m_ruleGroupStatusHasBeenSet; }
137 inline void SetRuleGroupStatus(ResourceStatus value) { m_ruleGroupStatusHasBeenSet = true; m_ruleGroupStatus = value; }
140
142
145 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 template<typename TagsT = Aws::Vector<Tag>>
148 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
149 template<typename TagsT = Aws::Vector<Tag>>
150 RuleGroupResponse& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
151 template<typename TagsT = Tag>
152 RuleGroupResponse& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
154
156
159 inline int GetConsumedCapacity() const { return m_consumedCapacity; }
160 inline bool ConsumedCapacityHasBeenSet() const { return m_consumedCapacityHasBeenSet; }
161 inline void SetConsumedCapacity(int value) { m_consumedCapacityHasBeenSet = true; m_consumedCapacity = value; }
162 inline RuleGroupResponse& WithConsumedCapacity(int value) { SetConsumedCapacity(value); return *this;}
164
166
169 inline int GetNumberOfAssociations() const { return m_numberOfAssociations; }
170 inline bool NumberOfAssociationsHasBeenSet() const { return m_numberOfAssociationsHasBeenSet; }
171 inline void SetNumberOfAssociations(int value) { m_numberOfAssociationsHasBeenSet = true; m_numberOfAssociations = value; }
172 inline RuleGroupResponse& WithNumberOfAssociations(int value) { SetNumberOfAssociations(value); return *this;}
174
176
180 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
181 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
182 template<typename EncryptionConfigurationT = EncryptionConfiguration>
183 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value); }
184 template<typename EncryptionConfigurationT = EncryptionConfiguration>
185 RuleGroupResponse& WithEncryptionConfiguration(EncryptionConfigurationT&& value) { SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value)); return *this;}
187
189
194 inline const SourceMetadata& GetSourceMetadata() const { return m_sourceMetadata; }
195 inline bool SourceMetadataHasBeenSet() const { return m_sourceMetadataHasBeenSet; }
196 template<typename SourceMetadataT = SourceMetadata>
197 void SetSourceMetadata(SourceMetadataT&& value) { m_sourceMetadataHasBeenSet = true; m_sourceMetadata = std::forward<SourceMetadataT>(value); }
198 template<typename SourceMetadataT = SourceMetadata>
199 RuleGroupResponse& WithSourceMetadata(SourceMetadataT&& value) { SetSourceMetadata(std::forward<SourceMetadataT>(value)); return *this;}
201
203
212 inline const Aws::String& GetSnsTopic() const { return m_snsTopic; }
213 inline bool SnsTopicHasBeenSet() const { return m_snsTopicHasBeenSet; }
214 template<typename SnsTopicT = Aws::String>
215 void SetSnsTopic(SnsTopicT&& value) { m_snsTopicHasBeenSet = true; m_snsTopic = std::forward<SnsTopicT>(value); }
216 template<typename SnsTopicT = Aws::String>
217 RuleGroupResponse& WithSnsTopic(SnsTopicT&& value) { SetSnsTopic(std::forward<SnsTopicT>(value)); return *this;}
219
221
224 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
225 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
226 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
227 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
228 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
229 RuleGroupResponse& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
231
233
243 inline const Aws::Vector<AnalysisResult>& GetAnalysisResults() const { return m_analysisResults; }
244 inline bool AnalysisResultsHasBeenSet() const { return m_analysisResultsHasBeenSet; }
245 template<typename AnalysisResultsT = Aws::Vector<AnalysisResult>>
246 void SetAnalysisResults(AnalysisResultsT&& value) { m_analysisResultsHasBeenSet = true; m_analysisResults = std::forward<AnalysisResultsT>(value); }
247 template<typename AnalysisResultsT = Aws::Vector<AnalysisResult>>
248 RuleGroupResponse& WithAnalysisResults(AnalysisResultsT&& value) { SetAnalysisResults(std::forward<AnalysisResultsT>(value)); return *this;}
249 template<typename AnalysisResultsT = AnalysisResult>
250 RuleGroupResponse& AddAnalysisResults(AnalysisResultsT&& value) { m_analysisResultsHasBeenSet = true; m_analysisResults.emplace_back(std::forward<AnalysisResultsT>(value)); return *this; }
252
254
261 inline const SummaryConfiguration& GetSummaryConfiguration() const { return m_summaryConfiguration; }
262 inline bool SummaryConfigurationHasBeenSet() const { return m_summaryConfigurationHasBeenSet; }
263 template<typename SummaryConfigurationT = SummaryConfiguration>
264 void SetSummaryConfiguration(SummaryConfigurationT&& value) { m_summaryConfigurationHasBeenSet = true; m_summaryConfiguration = std::forward<SummaryConfigurationT>(value); }
265 template<typename SummaryConfigurationT = SummaryConfiguration>
266 RuleGroupResponse& WithSummaryConfiguration(SummaryConfigurationT&& value) { SetSummaryConfiguration(std::forward<SummaryConfigurationT>(value)); return *this;}
268 private:
269
270 Aws::String m_ruleGroupArn;
271 bool m_ruleGroupArnHasBeenSet = false;
272
273 Aws::String m_ruleGroupName;
274 bool m_ruleGroupNameHasBeenSet = false;
275
276 Aws::String m_ruleGroupId;
277 bool m_ruleGroupIdHasBeenSet = false;
278
279 Aws::String m_description;
280 bool m_descriptionHasBeenSet = false;
281
283 bool m_typeHasBeenSet = false;
284
285 int m_capacity{0};
286 bool m_capacityHasBeenSet = false;
287
288 ResourceStatus m_ruleGroupStatus{ResourceStatus::NOT_SET};
289 bool m_ruleGroupStatusHasBeenSet = false;
290
291 Aws::Vector<Tag> m_tags;
292 bool m_tagsHasBeenSet = false;
293
294 int m_consumedCapacity{0};
295 bool m_consumedCapacityHasBeenSet = false;
296
297 int m_numberOfAssociations{0};
298 bool m_numberOfAssociationsHasBeenSet = false;
299
300 EncryptionConfiguration m_encryptionConfiguration;
301 bool m_encryptionConfigurationHasBeenSet = false;
302
303 SourceMetadata m_sourceMetadata;
304 bool m_sourceMetadataHasBeenSet = false;
305
306 Aws::String m_snsTopic;
307 bool m_snsTopicHasBeenSet = false;
308
309 Aws::Utils::DateTime m_lastModifiedTime{};
310 bool m_lastModifiedTimeHasBeenSet = false;
311
312 Aws::Vector<AnalysisResult> m_analysisResults;
313 bool m_analysisResultsHasBeenSet = false;
314
315 SummaryConfiguration m_summaryConfiguration;
316 bool m_summaryConfigurationHasBeenSet = false;
317 };
318
319} // namespace Model
320} // namespace NetworkFirewall
321} // namespace Aws
RuleGroupResponse & WithRuleGroupArn(RuleGroupArnT &&value)
void SetSummaryConfiguration(SummaryConfigurationT &&value)
RuleGroupResponse & WithAnalysisResults(AnalysisResultsT &&value)
const Aws::Vector< AnalysisResult > & GetAnalysisResults() const
RuleGroupResponse & WithRuleGroupName(RuleGroupNameT &&value)
RuleGroupResponse & AddAnalysisResults(AnalysisResultsT &&value)
RuleGroupResponse & WithSnsTopic(SnsTopicT &&value)
AWS_NETWORKFIREWALL_API RuleGroupResponse(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
RuleGroupResponse & WithSourceMetadata(SourceMetadataT &&value)
RuleGroupResponse & WithDescription(DescriptionT &&value)
const SourceMetadata & GetSourceMetadata() const
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
const SummaryConfiguration & GetSummaryConfiguration() const
RuleGroupResponse & AddTags(TagsT &&value)
AWS_NETWORKFIREWALL_API RuleGroupResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastModifiedTime() const
const EncryptionConfiguration & GetEncryptionConfiguration() const
RuleGroupResponse & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
void SetAnalysisResults(AnalysisResultsT &&value)
RuleGroupResponse & WithRuleGroupStatus(ResourceStatus value)
RuleGroupResponse & WithLastModifiedTime(LastModifiedTimeT &&value)
RuleGroupResponse & WithRuleGroupId(RuleGroupIdT &&value)
RuleGroupResponse & WithSummaryConfiguration(SummaryConfigurationT &&value)
RuleGroupResponse & WithConsumedCapacity(int value)
RuleGroupResponse & WithType(RuleGroupType value)
AWS_NETWORKFIREWALL_API RuleGroupResponse()=default
RuleGroupResponse & WithNumberOfAssociations(int value)
RuleGroupResponse & WithTags(TagsT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Vector< Tag > & GetTags() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue