AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttackDetail.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/shield/model/SubResourceSummary.h>
12#include <aws/shield/model/SummarizedCounter.h>
13#include <aws/shield/model/AttackProperty.h>
14#include <aws/shield/model/Mitigation.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Shield
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_SHIELD_API AttackDetail();
41 AWS_SHIELD_API AttackDetail(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetAttackId() const{ return m_attackId; }
51 inline bool AttackIdHasBeenSet() const { return m_attackIdHasBeenSet; }
52 inline void SetAttackId(const Aws::String& value) { m_attackIdHasBeenSet = true; m_attackId = value; }
53 inline void SetAttackId(Aws::String&& value) { m_attackIdHasBeenSet = true; m_attackId = std::move(value); }
54 inline void SetAttackId(const char* value) { m_attackIdHasBeenSet = true; m_attackId.assign(value); }
55 inline AttackDetail& WithAttackId(const Aws::String& value) { SetAttackId(value); return *this;}
56 inline AttackDetail& WithAttackId(Aws::String&& value) { SetAttackId(std::move(value)); return *this;}
57 inline AttackDetail& WithAttackId(const char* value) { SetAttackId(value); return *this;}
59
61
64 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
65 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
66 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
67 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
68 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
69 inline AttackDetail& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
70 inline AttackDetail& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
71 inline AttackDetail& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
73
75
79 inline const Aws::Vector<SubResourceSummary>& GetSubResources() const{ return m_subResources; }
80 inline bool SubResourcesHasBeenSet() const { return m_subResourcesHasBeenSet; }
81 inline void SetSubResources(const Aws::Vector<SubResourceSummary>& value) { m_subResourcesHasBeenSet = true; m_subResources = value; }
82 inline void SetSubResources(Aws::Vector<SubResourceSummary>&& value) { m_subResourcesHasBeenSet = true; m_subResources = std::move(value); }
84 inline AttackDetail& WithSubResources(Aws::Vector<SubResourceSummary>&& value) { SetSubResources(std::move(value)); return *this;}
85 inline AttackDetail& AddSubResources(const SubResourceSummary& value) { m_subResourcesHasBeenSet = true; m_subResources.push_back(value); return *this; }
86 inline AttackDetail& AddSubResources(SubResourceSummary&& value) { m_subResourcesHasBeenSet = true; m_subResources.push_back(std::move(value)); return *this; }
88
90
93 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
94 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
95 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
96 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
97 inline AttackDetail& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
98 inline AttackDetail& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
106 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
107 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
108 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
109 inline AttackDetail& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
110 inline AttackDetail& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
112
114
117 inline const Aws::Vector<SummarizedCounter>& GetAttackCounters() const{ return m_attackCounters; }
118 inline bool AttackCountersHasBeenSet() const { return m_attackCountersHasBeenSet; }
119 inline void SetAttackCounters(const Aws::Vector<SummarizedCounter>& value) { m_attackCountersHasBeenSet = true; m_attackCounters = value; }
120 inline void SetAttackCounters(Aws::Vector<SummarizedCounter>&& value) { m_attackCountersHasBeenSet = true; m_attackCounters = std::move(value); }
122 inline AttackDetail& WithAttackCounters(Aws::Vector<SummarizedCounter>&& value) { SetAttackCounters(std::move(value)); return *this;}
123 inline AttackDetail& AddAttackCounters(const SummarizedCounter& value) { m_attackCountersHasBeenSet = true; m_attackCounters.push_back(value); return *this; }
124 inline AttackDetail& AddAttackCounters(SummarizedCounter&& value) { m_attackCountersHasBeenSet = true; m_attackCounters.push_back(std::move(value)); return *this; }
126
128
135 inline const Aws::Vector<AttackProperty>& GetAttackProperties() const{ return m_attackProperties; }
136 inline bool AttackPropertiesHasBeenSet() const { return m_attackPropertiesHasBeenSet; }
137 inline void SetAttackProperties(const Aws::Vector<AttackProperty>& value) { m_attackPropertiesHasBeenSet = true; m_attackProperties = value; }
138 inline void SetAttackProperties(Aws::Vector<AttackProperty>&& value) { m_attackPropertiesHasBeenSet = true; m_attackProperties = std::move(value); }
140 inline AttackDetail& WithAttackProperties(Aws::Vector<AttackProperty>&& value) { SetAttackProperties(std::move(value)); return *this;}
141 inline AttackDetail& AddAttackProperties(const AttackProperty& value) { m_attackPropertiesHasBeenSet = true; m_attackProperties.push_back(value); return *this; }
142 inline AttackDetail& AddAttackProperties(AttackProperty&& value) { m_attackPropertiesHasBeenSet = true; m_attackProperties.push_back(std::move(value)); return *this; }
144
146
149 inline const Aws::Vector<Mitigation>& GetMitigations() const{ return m_mitigations; }
150 inline bool MitigationsHasBeenSet() const { return m_mitigationsHasBeenSet; }
151 inline void SetMitigations(const Aws::Vector<Mitigation>& value) { m_mitigationsHasBeenSet = true; m_mitigations = value; }
152 inline void SetMitigations(Aws::Vector<Mitigation>&& value) { m_mitigationsHasBeenSet = true; m_mitigations = std::move(value); }
153 inline AttackDetail& WithMitigations(const Aws::Vector<Mitigation>& value) { SetMitigations(value); return *this;}
154 inline AttackDetail& WithMitigations(Aws::Vector<Mitigation>&& value) { SetMitigations(std::move(value)); return *this;}
155 inline AttackDetail& AddMitigations(const Mitigation& value) { m_mitigationsHasBeenSet = true; m_mitigations.push_back(value); return *this; }
156 inline AttackDetail& AddMitigations(Mitigation&& value) { m_mitigationsHasBeenSet = true; m_mitigations.push_back(std::move(value)); return *this; }
158 private:
159
160 Aws::String m_attackId;
161 bool m_attackIdHasBeenSet = false;
162
163 Aws::String m_resourceArn;
164 bool m_resourceArnHasBeenSet = false;
165
166 Aws::Vector<SubResourceSummary> m_subResources;
167 bool m_subResourcesHasBeenSet = false;
168
169 Aws::Utils::DateTime m_startTime;
170 bool m_startTimeHasBeenSet = false;
171
172 Aws::Utils::DateTime m_endTime;
173 bool m_endTimeHasBeenSet = false;
174
175 Aws::Vector<SummarizedCounter> m_attackCounters;
176 bool m_attackCountersHasBeenSet = false;
177
178 Aws::Vector<AttackProperty> m_attackProperties;
179 bool m_attackPropertiesHasBeenSet = false;
180
181 Aws::Vector<Mitigation> m_mitigations;
182 bool m_mitigationsHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace Shield
187} // namespace Aws
void SetAttackId(Aws::String &&value)
void SetResourceArn(Aws::String &&value)
AttackDetail & AddMitigations(const Mitigation &value)
AttackDetail & AddSubResources(const SubResourceSummary &value)
AttackDetail & AddAttackProperties(const AttackProperty &value)
AttackDetail & AddAttackProperties(AttackProperty &&value)
AttackDetail & WithResourceArn(const char *value)
const Aws::String & GetAttackId() const
AttackDetail & WithEndTime(Aws::Utils::DateTime &&value)
AttackDetail & WithResourceArn(const Aws::String &value)
AttackDetail & WithAttackId(const char *value)
void SetAttackId(const Aws::String &value)
void SetMitigations(const Aws::Vector< Mitigation > &value)
void SetEndTime(Aws::Utils::DateTime &&value)
void SetResourceArn(const char *value)
AttackDetail & WithAttackProperties(Aws::Vector< AttackProperty > &&value)
AWS_SHIELD_API AttackDetail(Aws::Utils::Json::JsonView jsonValue)
AttackDetail & AddMitigations(Mitigation &&value)
void SetMitigations(Aws::Vector< Mitigation > &&value)
const Aws::Utils::DateTime & GetStartTime() const
AttackDetail & WithEndTime(const Aws::Utils::DateTime &value)
void SetSubResources(const Aws::Vector< SubResourceSummary > &value)
void SetStartTime(Aws::Utils::DateTime &&value)
const Aws::Vector< SummarizedCounter > & GetAttackCounters() const
AttackDetail & AddSubResources(SubResourceSummary &&value)
AttackDetail & WithAttackCounters(const Aws::Vector< SummarizedCounter > &value)
const Aws::Vector< Mitigation > & GetMitigations() const
void SetAttackId(const char *value)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStartTime(const Aws::Utils::DateTime &value)
AttackDetail & WithStartTime(Aws::Utils::DateTime &&value)
const Aws::String & GetResourceArn() const
AttackDetail & WithStartTime(const Aws::Utils::DateTime &value)
void SetEndTime(const Aws::Utils::DateTime &value)
AttackDetail & AddAttackCounters(const SummarizedCounter &value)
AWS_SHIELD_API AttackDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndTime() const
void SetResourceArn(const Aws::String &value)
void SetSubResources(Aws::Vector< SubResourceSummary > &&value)
void SetAttackCounters(const Aws::Vector< SummarizedCounter > &value)
void SetAttackProperties(Aws::Vector< AttackProperty > &&value)
const Aws::Vector< SubResourceSummary > & GetSubResources() const
AttackDetail & WithMitigations(Aws::Vector< Mitigation > &&value)
void SetAttackProperties(const Aws::Vector< AttackProperty > &value)
const Aws::Vector< AttackProperty > & GetAttackProperties() const
AttackDetail & WithSubResources(const Aws::Vector< SubResourceSummary > &value)
AttackDetail & WithAttackId(Aws::String &&value)
AttackDetail & WithSubResources(Aws::Vector< SubResourceSummary > &&value)
void SetAttackCounters(Aws::Vector< SummarizedCounter > &&value)
AttackDetail & WithResourceArn(Aws::String &&value)
AttackDetail & WithAttackId(const Aws::String &value)
AttackDetail & WithMitigations(const Aws::Vector< Mitigation > &value)
AttackDetail & WithAttackProperties(const Aws::Vector< AttackProperty > &value)
AttackDetail & AddAttackCounters(SummarizedCounter &&value)
AttackDetail & WithAttackCounters(Aws::Vector< SummarizedCounter > &&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