AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AttackSummary.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/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/shield/model/AttackVectorDescription.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Shield
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SHIELD_API AttackSummary() = default;
39 AWS_SHIELD_API AttackSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetAttackId() const { return m_attackId; }
49 inline bool AttackIdHasBeenSet() const { return m_attackIdHasBeenSet; }
50 template<typename AttackIdT = Aws::String>
51 void SetAttackId(AttackIdT&& value) { m_attackIdHasBeenSet = true; m_attackId = std::forward<AttackIdT>(value); }
52 template<typename AttackIdT = Aws::String>
53 AttackSummary& WithAttackId(AttackIdT&& value) { SetAttackId(std::forward<AttackIdT>(value)); return *this;}
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) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
64 template<typename ResourceArnT = Aws::String>
65 AttackSummary& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
67
69
72 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
73 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
74 template<typename StartTimeT = Aws::Utils::DateTime>
75 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
76 template<typename StartTimeT = Aws::Utils::DateTime>
77 AttackSummary& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
85 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
86 template<typename EndTimeT = Aws::Utils::DateTime>
87 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
88 template<typename EndTimeT = Aws::Utils::DateTime>
89 AttackSummary& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
91
93
96 inline const Aws::Vector<AttackVectorDescription>& GetAttackVectors() const { return m_attackVectors; }
97 inline bool AttackVectorsHasBeenSet() const { return m_attackVectorsHasBeenSet; }
98 template<typename AttackVectorsT = Aws::Vector<AttackVectorDescription>>
99 void SetAttackVectors(AttackVectorsT&& value) { m_attackVectorsHasBeenSet = true; m_attackVectors = std::forward<AttackVectorsT>(value); }
100 template<typename AttackVectorsT = Aws::Vector<AttackVectorDescription>>
101 AttackSummary& WithAttackVectors(AttackVectorsT&& value) { SetAttackVectors(std::forward<AttackVectorsT>(value)); return *this;}
102 template<typename AttackVectorsT = AttackVectorDescription>
103 AttackSummary& AddAttackVectors(AttackVectorsT&& value) { m_attackVectorsHasBeenSet = true; m_attackVectors.emplace_back(std::forward<AttackVectorsT>(value)); return *this; }
105 private:
106
107 Aws::String m_attackId;
108 bool m_attackIdHasBeenSet = false;
109
110 Aws::String m_resourceArn;
111 bool m_resourceArnHasBeenSet = false;
112
113 Aws::Utils::DateTime m_startTime{};
114 bool m_startTimeHasBeenSet = false;
115
116 Aws::Utils::DateTime m_endTime{};
117 bool m_endTimeHasBeenSet = false;
118
120 bool m_attackVectorsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace Shield
125} // 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