AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AttackProperty.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/shield/model/AttackLayer.h>
9#include <aws/shield/model/AttackPropertyIdentifier.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/shield/model/Unit.h>
12#include <aws/shield/model/Contributor.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Shield
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_SHIELD_API AttackProperty() = default;
40 AWS_SHIELD_API AttackProperty(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
55 inline AttackLayer GetAttackLayer() const { return m_attackLayer; }
56 inline bool AttackLayerHasBeenSet() const { return m_attackLayerHasBeenSet; }
57 inline void SetAttackLayer(AttackLayer value) { m_attackLayerHasBeenSet = true; m_attackLayer = value; }
58 inline AttackProperty& WithAttackLayer(AttackLayer value) { SetAttackLayer(value); return *this;}
60
62
68 inline AttackPropertyIdentifier GetAttackPropertyIdentifier() const { return m_attackPropertyIdentifier; }
69 inline bool AttackPropertyIdentifierHasBeenSet() const { return m_attackPropertyIdentifierHasBeenSet; }
70 inline void SetAttackPropertyIdentifier(AttackPropertyIdentifier value) { m_attackPropertyIdentifierHasBeenSet = true; m_attackPropertyIdentifier = value; }
73
75
80 inline const Aws::Vector<Contributor>& GetTopContributors() const { return m_topContributors; }
81 inline bool TopContributorsHasBeenSet() const { return m_topContributorsHasBeenSet; }
82 template<typename TopContributorsT = Aws::Vector<Contributor>>
83 void SetTopContributors(TopContributorsT&& value) { m_topContributorsHasBeenSet = true; m_topContributors = std::forward<TopContributorsT>(value); }
84 template<typename TopContributorsT = Aws::Vector<Contributor>>
85 AttackProperty& WithTopContributors(TopContributorsT&& value) { SetTopContributors(std::forward<TopContributorsT>(value)); return *this;}
86 template<typename TopContributorsT = Contributor>
87 AttackProperty& AddTopContributors(TopContributorsT&& value) { m_topContributorsHasBeenSet = true; m_topContributors.emplace_back(std::forward<TopContributorsT>(value)); return *this; }
89
91
95 inline Unit GetUnit() const { return m_unit; }
96 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
97 inline void SetUnit(Unit value) { m_unitHasBeenSet = true; m_unit = value; }
98 inline AttackProperty& WithUnit(Unit value) { SetUnit(value); return *this;}
100
102
105 inline long long GetTotal() const { return m_total; }
106 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
107 inline void SetTotal(long long value) { m_totalHasBeenSet = true; m_total = value; }
108 inline AttackProperty& WithTotal(long long value) { SetTotal(value); return *this;}
110 private:
111
112 AttackLayer m_attackLayer{AttackLayer::NOT_SET};
113 bool m_attackLayerHasBeenSet = false;
114
116 bool m_attackPropertyIdentifierHasBeenSet = false;
117
118 Aws::Vector<Contributor> m_topContributors;
119 bool m_topContributorsHasBeenSet = false;
120
121 Unit m_unit{Unit::NOT_SET};
122 bool m_unitHasBeenSet = false;
123
124 long long m_total{0};
125 bool m_totalHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Shield
130} // 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