AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AttackStatisticsDataItem.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/shield/model/AttackVolume.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Shield {
20namespace Model {
21
30 public:
31 AWS_SHIELD_API AttackStatisticsDataItem() = default;
34 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const AttackVolume& GetAttackVolume() const { return m_attackVolume; }
42 inline bool AttackVolumeHasBeenSet() const { return m_attackVolumeHasBeenSet; }
43 template <typename AttackVolumeT = AttackVolume>
44 void SetAttackVolume(AttackVolumeT&& value) {
45 m_attackVolumeHasBeenSet = true;
46 m_attackVolume = std::forward<AttackVolumeT>(value);
47 }
48 template <typename AttackVolumeT = AttackVolume>
50 SetAttackVolume(std::forward<AttackVolumeT>(value));
51 return *this;
52 }
54
56
60 inline long long GetAttackCount() const { return m_attackCount; }
61 inline bool AttackCountHasBeenSet() const { return m_attackCountHasBeenSet; }
62 inline void SetAttackCount(long long value) {
63 m_attackCountHasBeenSet = true;
64 m_attackCount = value;
65 }
66 inline AttackStatisticsDataItem& WithAttackCount(long long value) {
67 SetAttackCount(value);
68 return *this;
69 }
71 private:
72 AttackVolume m_attackVolume;
73
74 long long m_attackCount{0};
75 bool m_attackVolumeHasBeenSet = false;
76 bool m_attackCountHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Shield
81} // namespace Aws
AttackStatisticsDataItem & WithAttackVolume(AttackVolumeT &&value)
AttackStatisticsDataItem & WithAttackCount(long long value)
AWS_SHIELD_API AttackStatisticsDataItem(Aws::Utils::Json::JsonView jsonValue)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SHIELD_API AttackStatisticsDataItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SHIELD_API AttackStatisticsDataItem()=default
Aws::Utils::Json::JsonValue JsonValue