AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AttackProperty.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/shield/Shield_EXPORTS.h>
9#include <aws/shield/model/AttackLayer.h>
10#include <aws/shield/model/AttackPropertyIdentifier.h>
11#include <aws/shield/model/Contributor.h>
12#include <aws/shield/model/Unit.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Shield {
24namespace Model {
25
33 public:
34 AWS_SHIELD_API AttackProperty() = default;
35 AWS_SHIELD_API AttackProperty(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
49 inline AttackLayer GetAttackLayer() const { return m_attackLayer; }
50 inline bool AttackLayerHasBeenSet() const { return m_attackLayerHasBeenSet; }
51 inline void SetAttackLayer(AttackLayer value) {
52 m_attackLayerHasBeenSet = true;
53 m_attackLayer = value;
54 }
56 SetAttackLayer(value);
57 return *this;
58 }
60
62
68 inline AttackPropertyIdentifier GetAttackPropertyIdentifier() const { return m_attackPropertyIdentifier; }
69 inline bool AttackPropertyIdentifierHasBeenSet() const { return m_attackPropertyIdentifierHasBeenSet; }
71 m_attackPropertyIdentifierHasBeenSet = true;
72 m_attackPropertyIdentifier = value;
73 }
76 return *this;
77 }
79
81
86 inline const Aws::Vector<Contributor>& GetTopContributors() const { return m_topContributors; }
87 inline bool TopContributorsHasBeenSet() const { return m_topContributorsHasBeenSet; }
88 template <typename TopContributorsT = Aws::Vector<Contributor>>
89 void SetTopContributors(TopContributorsT&& value) {
90 m_topContributorsHasBeenSet = true;
91 m_topContributors = std::forward<TopContributorsT>(value);
92 }
93 template <typename TopContributorsT = Aws::Vector<Contributor>>
94 AttackProperty& WithTopContributors(TopContributorsT&& value) {
95 SetTopContributors(std::forward<TopContributorsT>(value));
96 return *this;
97 }
98 template <typename TopContributorsT = Contributor>
99 AttackProperty& AddTopContributors(TopContributorsT&& value) {
100 m_topContributorsHasBeenSet = true;
101 m_topContributors.emplace_back(std::forward<TopContributorsT>(value));
102 return *this;
103 }
105
107
111 inline Unit GetUnit() const { return m_unit; }
112 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
113 inline void SetUnit(Unit value) {
114 m_unitHasBeenSet = true;
115 m_unit = value;
116 }
117 inline AttackProperty& WithUnit(Unit value) {
118 SetUnit(value);
119 return *this;
120 }
122
124
127 inline long long GetTotal() const { return m_total; }
128 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
129 inline void SetTotal(long long value) {
130 m_totalHasBeenSet = true;
131 m_total = value;
132 }
133 inline AttackProperty& WithTotal(long long value) {
134 SetTotal(value);
135 return *this;
136 }
138 private:
139 AttackLayer m_attackLayer{AttackLayer::NOT_SET};
140
142
143 Aws::Vector<Contributor> m_topContributors;
144
145 Unit m_unit{Unit::NOT_SET};
146
147 long long m_total{0};
148 bool m_attackLayerHasBeenSet = false;
149 bool m_attackPropertyIdentifierHasBeenSet = false;
150 bool m_topContributorsHasBeenSet = false;
151 bool m_unitHasBeenSet = false;
152 bool m_totalHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace Shield
157} // namespace Aws
void SetAttackPropertyIdentifier(AttackPropertyIdentifier value)
AttackProperty & WithTotal(long long value)
AttackProperty & WithAttackPropertyIdentifier(AttackPropertyIdentifier value)
AWS_SHIELD_API AttackProperty(Aws::Utils::Json::JsonView jsonValue)
AWS_SHIELD_API AttackProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
AttackPropertyIdentifier GetAttackPropertyIdentifier() const
AWS_SHIELD_API AttackProperty()=default
void SetTopContributors(TopContributorsT &&value)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
AttackProperty & WithUnit(Unit value)
const Aws::Vector< Contributor > & GetTopContributors() const
AttackProperty & AddTopContributors(TopContributorsT &&value)
AttackProperty & WithTopContributors(TopContributorsT &&value)
AttackProperty & WithAttackLayer(AttackLayer value)
void SetAttackLayer(AttackLayer value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue