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>
52 m_attackLayerHasBeenSet =
true;
53 m_attackLayer = value;
71 m_attackPropertyIdentifierHasBeenSet =
true;
72 m_attackPropertyIdentifier = value;
88 template <
typename TopContributorsT = Aws::Vector<Contributor>>
90 m_topContributorsHasBeenSet =
true;
91 m_topContributors = std::forward<TopContributorsT>(value);
93 template <
typename TopContributorsT = Aws::Vector<Contributor>>
98 template <
typename TopContributorsT = Contributor>
100 m_topContributorsHasBeenSet =
true;
101 m_topContributors.emplace_back(std::forward<TopContributorsT>(value));
114 m_unitHasBeenSet =
true;
127 inline long long GetTotal()
const {
return m_total; }
130 m_totalHasBeenSet =
true;
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;
void SetAttackPropertyIdentifier(AttackPropertyIdentifier value)
AttackProperty & WithTotal(long long value)
AttackProperty & WithAttackPropertyIdentifier(AttackPropertyIdentifier value)
long long GetTotal() const
AWS_SHIELD_API AttackProperty(Aws::Utils::Json::JsonView jsonValue)
AWS_SHIELD_API AttackProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
AttackLayer GetAttackLayer() const
AttackPropertyIdentifier GetAttackPropertyIdentifier() const
bool AttackLayerHasBeenSet() const
AWS_SHIELD_API AttackProperty()=default
bool TotalHasBeenSet() const
bool TopContributorsHasBeenSet() const
bool AttackPropertyIdentifierHasBeenSet() const
void SetTotal(long long value)
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)
bool UnitHasBeenSet() const
AttackProperty & WithAttackLayer(AttackLayer value)
void SetAttackLayer(AttackLayer value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue