AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAttackId(const Aws::String& value) { m_attackIdHasBeenSet = true; m_attackId = value; }
51 inline void SetAttackId(Aws::String&& value) { m_attackIdHasBeenSet = true; m_attackId = std::move(value); }
52 inline void SetAttackId(const char* value) { m_attackIdHasBeenSet = true; m_attackId.assign(value); }
53 inline AttackSummary& WithAttackId(const Aws::String& value) { SetAttackId(value); return *this;}
54 inline AttackSummary& WithAttackId(Aws::String&& value) { SetAttackId(std::move(value)); return *this;}
55 inline AttackSummary& WithAttackId(const char* value) { SetAttackId(value); return *this;}
57
59
62 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
63 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
64 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
65 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
66 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
67 inline AttackSummary& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
68 inline AttackSummary& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
69 inline AttackSummary& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
71
73
76 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
77 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
78 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
79 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
80 inline AttackSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
81 inline AttackSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
89 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
90 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
91 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
92 inline AttackSummary& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
93 inline AttackSummary& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
95
97
100 inline const Aws::Vector<AttackVectorDescription>& GetAttackVectors() const{ return m_attackVectors; }
101 inline bool AttackVectorsHasBeenSet() const { return m_attackVectorsHasBeenSet; }
102 inline void SetAttackVectors(const Aws::Vector<AttackVectorDescription>& value) { m_attackVectorsHasBeenSet = true; m_attackVectors = value; }
103 inline void SetAttackVectors(Aws::Vector<AttackVectorDescription>&& value) { m_attackVectorsHasBeenSet = true; m_attackVectors = std::move(value); }
106 inline AttackSummary& AddAttackVectors(const AttackVectorDescription& value) { m_attackVectorsHasBeenSet = true; m_attackVectors.push_back(value); return *this; }
107 inline AttackSummary& AddAttackVectors(AttackVectorDescription&& value) { m_attackVectorsHasBeenSet = true; m_attackVectors.push_back(std::move(value)); return *this; }
109 private:
110
111 Aws::String m_attackId;
112 bool m_attackIdHasBeenSet = false;
113
114 Aws::String m_resourceArn;
115 bool m_resourceArnHasBeenSet = false;
116
117 Aws::Utils::DateTime m_startTime;
118 bool m_startTimeHasBeenSet = false;
119
120 Aws::Utils::DateTime m_endTime;
121 bool m_endTimeHasBeenSet = false;
122
124 bool m_attackVectorsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace Shield
129} // namespace Aws
AttackSummary & WithEndTime(Aws::Utils::DateTime &&value)
void SetResourceArn(const char *value)
void SetAttackVectors(const Aws::Vector< AttackVectorDescription > &value)
AttackSummary & AddAttackVectors(const AttackVectorDescription &value)
void SetAttackId(Aws::String &&value)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAttackId(const char *value)
AttackSummary & WithStartTime(Aws::Utils::DateTime &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetAttackId(const Aws::String &value)
AttackSummary & WithResourceArn(const char *value)
AttackSummary & WithEndTime(const Aws::Utils::DateTime &value)
AttackSummary & WithStartTime(const Aws::Utils::DateTime &value)
AWS_SHIELD_API AttackSummary(Aws::Utils::Json::JsonView jsonValue)
void SetStartTime(Aws::Utils::DateTime &&value)
AWS_SHIELD_API AttackSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndTime() const
AttackSummary & WithAttackVectors(Aws::Vector< AttackVectorDescription > &&value)
const Aws::Vector< AttackVectorDescription > & GetAttackVectors() const
AttackSummary & AddAttackVectors(AttackVectorDescription &&value)
AttackSummary & WithAttackId(const Aws::String &value)
const Aws::String & GetResourceArn() const
AttackSummary & WithResourceArn(const Aws::String &value)
const Aws::String & GetAttackId() const
AttackSummary & WithAttackId(Aws::String &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetEndTime(Aws::Utils::DateTime &&value)
void SetAttackVectors(Aws::Vector< AttackVectorDescription > &&value)
void SetResourceArn(const Aws::String &value)
AttackSummary & WithAttackVectors(const Aws::Vector< AttackVectorDescription > &value)
void SetEndTime(const Aws::Utils::DateTime &value)
AttackSummary & WithResourceArn(Aws::String &&value)
void SetResourceArn(Aws::String &&value)
AttackSummary & WithAttackId(const char *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