AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AttackSummary.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/shield/Shield_EXPORTS.h>
11#include <aws/shield/model/AttackVectorDescription.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Shield {
23namespace Model {
24
32 public:
33 AWS_SHIELD_API AttackSummary() = default;
34 AWS_SHIELD_API AttackSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAttackId() const { return m_attackId; }
43 inline bool AttackIdHasBeenSet() const { return m_attackIdHasBeenSet; }
44 template <typename AttackIdT = Aws::String>
45 void SetAttackId(AttackIdT&& value) {
46 m_attackIdHasBeenSet = true;
47 m_attackId = std::forward<AttackIdT>(value);
48 }
49 template <typename AttackIdT = Aws::String>
50 AttackSummary& WithAttackId(AttackIdT&& value) {
51 SetAttackId(std::forward<AttackIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
61 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
62 template <typename ResourceArnT = Aws::String>
63 void SetResourceArn(ResourceArnT&& value) {
64 m_resourceArnHasBeenSet = true;
65 m_resourceArn = std::forward<ResourceArnT>(value);
66 }
67 template <typename ResourceArnT = Aws::String>
68 AttackSummary& WithResourceArn(ResourceArnT&& value) {
69 SetResourceArn(std::forward<ResourceArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
79 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
80 template <typename StartTimeT = Aws::Utils::DateTime>
81 void SetStartTime(StartTimeT&& value) {
82 m_startTimeHasBeenSet = true;
83 m_startTime = std::forward<StartTimeT>(value);
84 }
85 template <typename StartTimeT = Aws::Utils::DateTime>
86 AttackSummary& WithStartTime(StartTimeT&& value) {
87 SetStartTime(std::forward<StartTimeT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
97 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
98 template <typename EndTimeT = Aws::Utils::DateTime>
99 void SetEndTime(EndTimeT&& value) {
100 m_endTimeHasBeenSet = true;
101 m_endTime = std::forward<EndTimeT>(value);
102 }
103 template <typename EndTimeT = Aws::Utils::DateTime>
104 AttackSummary& WithEndTime(EndTimeT&& value) {
105 SetEndTime(std::forward<EndTimeT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<AttackVectorDescription>& GetAttackVectors() const { return m_attackVectors; }
115 inline bool AttackVectorsHasBeenSet() const { return m_attackVectorsHasBeenSet; }
116 template <typename AttackVectorsT = Aws::Vector<AttackVectorDescription>>
117 void SetAttackVectors(AttackVectorsT&& value) {
118 m_attackVectorsHasBeenSet = true;
119 m_attackVectors = std::forward<AttackVectorsT>(value);
120 }
121 template <typename AttackVectorsT = Aws::Vector<AttackVectorDescription>>
122 AttackSummary& WithAttackVectors(AttackVectorsT&& value) {
123 SetAttackVectors(std::forward<AttackVectorsT>(value));
124 return *this;
125 }
126 template <typename AttackVectorsT = AttackVectorDescription>
127 AttackSummary& AddAttackVectors(AttackVectorsT&& value) {
128 m_attackVectorsHasBeenSet = true;
129 m_attackVectors.emplace_back(std::forward<AttackVectorsT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_attackId;
135
136 Aws::String m_resourceArn;
137
138 Aws::Utils::DateTime m_startTime{};
139
140 Aws::Utils::DateTime m_endTime{};
141
143 bool m_attackIdHasBeenSet = false;
144 bool m_resourceArnHasBeenSet = false;
145 bool m_startTimeHasBeenSet = false;
146 bool m_endTimeHasBeenSet = false;
147 bool m_attackVectorsHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace Shield
152} // namespace Aws
AttackSummary & WithStartTime(StartTimeT &&value)
AWS_SHIELD_API AttackSummary()=default
AttackSummary & WithResourceArn(ResourceArnT &&value)
void SetAttackVectors(AttackVectorsT &&value)
AttackSummary & WithAttackId(AttackIdT &&value)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
AttackSummary & WithEndTime(EndTimeT &&value)
AttackSummary & AddAttackVectors(AttackVectorsT &&value)
void SetResourceArn(ResourceArnT &&value)
AWS_SHIELD_API AttackSummary(Aws::Utils::Json::JsonView jsonValue)
void SetStartTime(StartTimeT &&value)
AWS_SHIELD_API AttackSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndTime() const
const Aws::Vector< AttackVectorDescription > & GetAttackVectors() const
AttackSummary & WithAttackVectors(AttackVectorsT &&value)
const Aws::String & GetResourceArn() const
const Aws::String & GetAttackId() const
const Aws::Utils::DateTime & GetStartTime() const
void SetAttackId(AttackIdT &&value)
void SetEndTime(EndTimeT &&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