AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/Tag.h>
16#include <aws/network-firewall/model/AnalysisResult.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace NetworkFirewall
30{
31namespace Model
32{
33
42 {
43 public:
44 AWS_NETWORKFIREWALL_API RuleGroupResponse();
45 AWS_NETWORKFIREWALL_API RuleGroupResponse(Aws::Utils::Json::JsonView jsonValue);
46 AWS_NETWORKFIREWALL_API RuleGroupResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
57 inline const Aws::String& GetRuleGroupArn() const{ return m_ruleGroupArn; }
58 inline bool RuleGroupArnHasBeenSet() const { return m_ruleGroupArnHasBeenSet; }
59 inline void SetRuleGroupArn(const Aws::String& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = value; }
60 inline void SetRuleGroupArn(Aws::String&& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = std::move(value); }
61 inline void SetRuleGroupArn(const char* value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn.assign(value); }
62 inline RuleGroupResponse& WithRuleGroupArn(const Aws::String& value) { SetRuleGroupArn(value); return *this;}
63 inline RuleGroupResponse& WithRuleGroupArn(Aws::String&& value) { SetRuleGroupArn(std::move(value)); return *this;}
64 inline RuleGroupResponse& WithRuleGroupArn(const char* value) { SetRuleGroupArn(value); return *this;}
66
68
72 inline const Aws::String& GetRuleGroupName() const{ return m_ruleGroupName; }
73 inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; }
74 inline void SetRuleGroupName(const Aws::String& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = value; }
75 inline void SetRuleGroupName(Aws::String&& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = std::move(value); }
76 inline void SetRuleGroupName(const char* value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName.assign(value); }
77 inline RuleGroupResponse& WithRuleGroupName(const Aws::String& value) { SetRuleGroupName(value); return *this;}
78 inline RuleGroupResponse& WithRuleGroupName(Aws::String&& value) { SetRuleGroupName(std::move(value)); return *this;}
79 inline RuleGroupResponse& WithRuleGroupName(const char* value) { SetRuleGroupName(value); return *this;}
81
83
86 inline const Aws::String& GetRuleGroupId() const{ return m_ruleGroupId; }
87 inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
88 inline void SetRuleGroupId(const Aws::String& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = value; }
89 inline void SetRuleGroupId(Aws::String&& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = std::move(value); }
90 inline void SetRuleGroupId(const char* value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId.assign(value); }
91 inline RuleGroupResponse& WithRuleGroupId(const Aws::String& value) { SetRuleGroupId(value); return *this;}
92 inline RuleGroupResponse& WithRuleGroupId(Aws::String&& value) { SetRuleGroupId(std::move(value)); return *this;}
93 inline RuleGroupResponse& WithRuleGroupId(const char* value) { SetRuleGroupId(value); return *this;}
95
97
100 inline const Aws::String& GetDescription() const{ return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
103 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
104 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
105 inline RuleGroupResponse& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
106 inline RuleGroupResponse& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
107 inline RuleGroupResponse& WithDescription(const char* value) { SetDescription(value); return *this;}
109
111
116 inline const RuleGroupType& GetType() const{ return m_type; }
117 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
118 inline void SetType(const RuleGroupType& value) { m_typeHasBeenSet = true; m_type = value; }
119 inline void SetType(RuleGroupType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
120 inline RuleGroupResponse& WithType(const RuleGroupType& value) { SetType(value); return *this;}
121 inline RuleGroupResponse& WithType(RuleGroupType&& value) { SetType(std::move(value)); return *this;}
123
125
134 inline int GetCapacity() const{ return m_capacity; }
135 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
136 inline void SetCapacity(int value) { m_capacityHasBeenSet = true; m_capacity = value; }
137 inline RuleGroupResponse& WithCapacity(int value) { SetCapacity(value); return *this;}
139
141
144 inline const ResourceStatus& GetRuleGroupStatus() const{ return m_ruleGroupStatus; }
145 inline bool RuleGroupStatusHasBeenSet() const { return m_ruleGroupStatusHasBeenSet; }
146 inline void SetRuleGroupStatus(const ResourceStatus& value) { m_ruleGroupStatusHasBeenSet = true; m_ruleGroupStatus = value; }
147 inline void SetRuleGroupStatus(ResourceStatus&& value) { m_ruleGroupStatusHasBeenSet = true; m_ruleGroupStatus = std::move(value); }
148 inline RuleGroupResponse& WithRuleGroupStatus(const ResourceStatus& value) { SetRuleGroupStatus(value); return *this;}
149 inline RuleGroupResponse& WithRuleGroupStatus(ResourceStatus&& value) { SetRuleGroupStatus(std::move(value)); return *this;}
151
153
156 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
159 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
160 inline RuleGroupResponse& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
161 inline RuleGroupResponse& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
162 inline RuleGroupResponse& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
163 inline RuleGroupResponse& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
165
167
170 inline int GetConsumedCapacity() const{ return m_consumedCapacity; }
171 inline bool ConsumedCapacityHasBeenSet() const { return m_consumedCapacityHasBeenSet; }
172 inline void SetConsumedCapacity(int value) { m_consumedCapacityHasBeenSet = true; m_consumedCapacity = value; }
173 inline RuleGroupResponse& WithConsumedCapacity(int value) { SetConsumedCapacity(value); return *this;}
175
177
180 inline int GetNumberOfAssociations() const{ return m_numberOfAssociations; }
181 inline bool NumberOfAssociationsHasBeenSet() const { return m_numberOfAssociationsHasBeenSet; }
182 inline void SetNumberOfAssociations(int value) { m_numberOfAssociationsHasBeenSet = true; m_numberOfAssociations = value; }
183 inline RuleGroupResponse& WithNumberOfAssociations(int value) { SetNumberOfAssociations(value); return *this;}
185
187
191 inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
192 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
193 inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
194 inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
198
200
205 inline const SourceMetadata& GetSourceMetadata() const{ return m_sourceMetadata; }
206 inline bool SourceMetadataHasBeenSet() const { return m_sourceMetadataHasBeenSet; }
207 inline void SetSourceMetadata(const SourceMetadata& value) { m_sourceMetadataHasBeenSet = true; m_sourceMetadata = value; }
208 inline void SetSourceMetadata(SourceMetadata&& value) { m_sourceMetadataHasBeenSet = true; m_sourceMetadata = std::move(value); }
209 inline RuleGroupResponse& WithSourceMetadata(const SourceMetadata& value) { SetSourceMetadata(value); return *this;}
210 inline RuleGroupResponse& WithSourceMetadata(SourceMetadata&& value) { SetSourceMetadata(std::move(value)); return *this;}
212
214
223 inline const Aws::String& GetSnsTopic() const{ return m_snsTopic; }
224 inline bool SnsTopicHasBeenSet() const { return m_snsTopicHasBeenSet; }
225 inline void SetSnsTopic(const Aws::String& value) { m_snsTopicHasBeenSet = true; m_snsTopic = value; }
226 inline void SetSnsTopic(Aws::String&& value) { m_snsTopicHasBeenSet = true; m_snsTopic = std::move(value); }
227 inline void SetSnsTopic(const char* value) { m_snsTopicHasBeenSet = true; m_snsTopic.assign(value); }
228 inline RuleGroupResponse& WithSnsTopic(const Aws::String& value) { SetSnsTopic(value); return *this;}
229 inline RuleGroupResponse& WithSnsTopic(Aws::String&& value) { SetSnsTopic(std::move(value)); return *this;}
230 inline RuleGroupResponse& WithSnsTopic(const char* value) { SetSnsTopic(value); return *this;}
232
234
237 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
238 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
239 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
240 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
242 inline RuleGroupResponse& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
244
246
256 inline const Aws::Vector<AnalysisResult>& GetAnalysisResults() const{ return m_analysisResults; }
257 inline bool AnalysisResultsHasBeenSet() const { return m_analysisResultsHasBeenSet; }
258 inline void SetAnalysisResults(const Aws::Vector<AnalysisResult>& value) { m_analysisResultsHasBeenSet = true; m_analysisResults = value; }
259 inline void SetAnalysisResults(Aws::Vector<AnalysisResult>&& value) { m_analysisResultsHasBeenSet = true; m_analysisResults = std::move(value); }
261 inline RuleGroupResponse& WithAnalysisResults(Aws::Vector<AnalysisResult>&& value) { SetAnalysisResults(std::move(value)); return *this;}
262 inline RuleGroupResponse& AddAnalysisResults(const AnalysisResult& value) { m_analysisResultsHasBeenSet = true; m_analysisResults.push_back(value); return *this; }
263 inline RuleGroupResponse& AddAnalysisResults(AnalysisResult&& value) { m_analysisResultsHasBeenSet = true; m_analysisResults.push_back(std::move(value)); return *this; }
265 private:
266
267 Aws::String m_ruleGroupArn;
268 bool m_ruleGroupArnHasBeenSet = false;
269
270 Aws::String m_ruleGroupName;
271 bool m_ruleGroupNameHasBeenSet = false;
272
273 Aws::String m_ruleGroupId;
274 bool m_ruleGroupIdHasBeenSet = false;
275
276 Aws::String m_description;
277 bool m_descriptionHasBeenSet = false;
278
279 RuleGroupType m_type;
280 bool m_typeHasBeenSet = false;
281
282 int m_capacity;
283 bool m_capacityHasBeenSet = false;
284
285 ResourceStatus m_ruleGroupStatus;
286 bool m_ruleGroupStatusHasBeenSet = false;
287
288 Aws::Vector<Tag> m_tags;
289 bool m_tagsHasBeenSet = false;
290
291 int m_consumedCapacity;
292 bool m_consumedCapacityHasBeenSet = false;
293
294 int m_numberOfAssociations;
295 bool m_numberOfAssociationsHasBeenSet = false;
296
297 EncryptionConfiguration m_encryptionConfiguration;
298 bool m_encryptionConfigurationHasBeenSet = false;
299
300 SourceMetadata m_sourceMetadata;
301 bool m_sourceMetadataHasBeenSet = false;
302
303 Aws::String m_snsTopic;
304 bool m_snsTopicHasBeenSet = false;
305
306 Aws::Utils::DateTime m_lastModifiedTime;
307 bool m_lastModifiedTimeHasBeenSet = false;
308
309 Aws::Vector<AnalysisResult> m_analysisResults;
310 bool m_analysisResultsHasBeenSet = false;
311 };
312
313} // namespace Model
314} // namespace NetworkFirewall
315} // namespace Aws
RuleGroupResponse & AddAnalysisResults(const AnalysisResult &value)
RuleGroupResponse & AddAnalysisResults(AnalysisResult &&value)
RuleGroupResponse & WithRuleGroupArn(const char *value)
RuleGroupResponse & WithType(RuleGroupType &&value)
RuleGroupResponse & WithRuleGroupName(const char *value)
RuleGroupResponse & WithTags(Aws::Vector< Tag > &&value)
RuleGroupResponse & WithRuleGroupId(Aws::String &&value)
RuleGroupResponse & WithRuleGroupName(const Aws::String &value)
const Aws::Vector< AnalysisResult > & GetAnalysisResults() const
RuleGroupResponse & WithEncryptionConfiguration(EncryptionConfiguration &&value)
RuleGroupResponse & WithRuleGroupArn(const Aws::String &value)
AWS_NETWORKFIREWALL_API RuleGroupResponse(Aws::Utils::Json::JsonView jsonValue)
RuleGroupResponse & WithSourceMetadata(const SourceMetadata &value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
const ResourceStatus & GetRuleGroupStatus() const
void SetRuleGroupName(const Aws::String &value)
RuleGroupResponse & WithLastModifiedTime(Aws::Utils::DateTime &&value)
const SourceMetadata & GetSourceMetadata() const
RuleGroupResponse & WithSnsTopic(const char *value)
RuleGroupResponse & WithType(const RuleGroupType &value)
RuleGroupResponse & WithDescription(const char *value)
RuleGroupResponse & WithRuleGroupName(Aws::String &&value)
void SetEncryptionConfiguration(EncryptionConfiguration &&value)
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
AWS_NETWORKFIREWALL_API RuleGroupResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastModifiedTime() const
const EncryptionConfiguration & GetEncryptionConfiguration() const
RuleGroupResponse & WithLastModifiedTime(const Aws::Utils::DateTime &value)
RuleGroupResponse & WithSnsTopic(Aws::String &&value)
RuleGroupResponse & WithRuleGroupId(const Aws::String &value)
RuleGroupResponse & WithAnalysisResults(const Aws::Vector< AnalysisResult > &value)
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
RuleGroupResponse & WithSourceMetadata(SourceMetadata &&value)
RuleGroupResponse & WithRuleGroupArn(Aws::String &&value)
RuleGroupResponse & WithAnalysisResults(Aws::Vector< AnalysisResult > &&value)
RuleGroupResponse & WithSnsTopic(const Aws::String &value)
void SetRuleGroupId(const Aws::String &value)
void SetEncryptionConfiguration(const EncryptionConfiguration &value)
RuleGroupResponse & WithRuleGroupStatus(ResourceStatus &&value)
RuleGroupResponse & WithDescription(const Aws::String &value)
void SetSourceMetadata(const SourceMetadata &value)
void SetTags(const Aws::Vector< Tag > &value)
RuleGroupResponse & WithConsumedCapacity(int value)
RuleGroupResponse & WithDescription(Aws::String &&value)
void SetAnalysisResults(const Aws::Vector< AnalysisResult > &value)
RuleGroupResponse & WithRuleGroupId(const char *value)
RuleGroupResponse & WithRuleGroupStatus(const ResourceStatus &value)
void SetRuleGroupArn(const Aws::String &value)
void SetRuleGroupStatus(const ResourceStatus &value)
RuleGroupResponse & WithNumberOfAssociations(int value)
void SetAnalysisResults(Aws::Vector< AnalysisResult > &&value)
RuleGroupResponse & WithEncryptionConfiguration(const EncryptionConfiguration &value)
RuleGroupResponse & AddTags(const Tag &value)
RuleGroupResponse & WithTags(const Aws::Vector< Tag > &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