AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const AttackLayer& GetAttackLayer() const{ return m_attackLayer; }
56 inline bool AttackLayerHasBeenSet() const { return m_attackLayerHasBeenSet; }
57 inline void SetAttackLayer(const AttackLayer& value) { m_attackLayerHasBeenSet = true; m_attackLayer = value; }
58 inline void SetAttackLayer(AttackLayer&& value) { m_attackLayerHasBeenSet = true; m_attackLayer = std::move(value); }
59 inline AttackProperty& WithAttackLayer(const AttackLayer& value) { SetAttackLayer(value); return *this;}
60 inline AttackProperty& WithAttackLayer(AttackLayer&& value) { SetAttackLayer(std::move(value)); return *this;}
62
64
70 inline const AttackPropertyIdentifier& GetAttackPropertyIdentifier() const{ return m_attackPropertyIdentifier; }
71 inline bool AttackPropertyIdentifierHasBeenSet() const { return m_attackPropertyIdentifierHasBeenSet; }
72 inline void SetAttackPropertyIdentifier(const AttackPropertyIdentifier& value) { m_attackPropertyIdentifierHasBeenSet = true; m_attackPropertyIdentifier = value; }
73 inline void SetAttackPropertyIdentifier(AttackPropertyIdentifier&& value) { m_attackPropertyIdentifierHasBeenSet = true; m_attackPropertyIdentifier = std::move(value); }
77
79
84 inline const Aws::Vector<Contributor>& GetTopContributors() const{ return m_topContributors; }
85 inline bool TopContributorsHasBeenSet() const { return m_topContributorsHasBeenSet; }
86 inline void SetTopContributors(const Aws::Vector<Contributor>& value) { m_topContributorsHasBeenSet = true; m_topContributors = value; }
87 inline void SetTopContributors(Aws::Vector<Contributor>&& value) { m_topContributorsHasBeenSet = true; m_topContributors = std::move(value); }
89 inline AttackProperty& WithTopContributors(Aws::Vector<Contributor>&& value) { SetTopContributors(std::move(value)); return *this;}
90 inline AttackProperty& AddTopContributors(const Contributor& value) { m_topContributorsHasBeenSet = true; m_topContributors.push_back(value); return *this; }
91 inline AttackProperty& AddTopContributors(Contributor&& value) { m_topContributorsHasBeenSet = true; m_topContributors.push_back(std::move(value)); return *this; }
93
95
99 inline const Unit& GetUnit() const{ return m_unit; }
100 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
101 inline void SetUnit(const Unit& value) { m_unitHasBeenSet = true; m_unit = value; }
102 inline void SetUnit(Unit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
103 inline AttackProperty& WithUnit(const Unit& value) { SetUnit(value); return *this;}
104 inline AttackProperty& WithUnit(Unit&& value) { SetUnit(std::move(value)); return *this;}
106
108
111 inline long long GetTotal() const{ return m_total; }
112 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
113 inline void SetTotal(long long value) { m_totalHasBeenSet = true; m_total = value; }
114 inline AttackProperty& WithTotal(long long value) { SetTotal(value); return *this;}
116 private:
117
118 AttackLayer m_attackLayer;
119 bool m_attackLayerHasBeenSet = false;
120
121 AttackPropertyIdentifier m_attackPropertyIdentifier;
122 bool m_attackPropertyIdentifierHasBeenSet = false;
123
124 Aws::Vector<Contributor> m_topContributors;
125 bool m_topContributorsHasBeenSet = false;
126
127 Unit m_unit;
128 bool m_unitHasBeenSet = false;
129
130 long long m_total;
131 bool m_totalHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Shield
136} // namespace Aws
AttackProperty & WithTotal(long long value)
AWS_SHIELD_API AttackProperty(Aws::Utils::Json::JsonView jsonValue)
void SetAttackLayer(const AttackLayer &value)
AWS_SHIELD_API AttackProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
AttackProperty & WithAttackPropertyIdentifier(AttackPropertyIdentifier &&value)
AttackProperty & AddTopContributors(const Contributor &value)
void SetTopContributors(const Aws::Vector< Contributor > &value)
AttackProperty & WithTopContributors(Aws::Vector< Contributor > &&value)
AttackProperty & WithAttackPropertyIdentifier(const AttackPropertyIdentifier &value)
const AttackLayer & GetAttackLayer() const
void SetAttackPropertyIdentifier(const AttackPropertyIdentifier &value)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTopContributors(Aws::Vector< Contributor > &&value)
AttackProperty & AddTopContributors(Contributor &&value)
const AttackPropertyIdentifier & GetAttackPropertyIdentifier() const
AttackProperty & WithAttackLayer(AttackLayer &&value)
const Aws::Vector< Contributor > & GetTopContributors() const
void SetUnit(const Unit &value)
void SetAttackLayer(AttackLayer &&value)
AttackProperty & WithAttackLayer(const AttackLayer &value)
AttackProperty & WithUnit(const Unit &value)
AttackProperty & WithTopContributors(const Aws::Vector< Contributor > &value)
AttackProperty & WithUnit(Unit &&value)
void SetAttackPropertyIdentifier(AttackPropertyIdentifier &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue