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>
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>>
86 template<
typename TopContributorsT = Contributor>
87 AttackProperty&
AddTopContributors(TopContributorsT&& value) { m_topContributorsHasBeenSet =
true; m_topContributors.emplace_back(std::forward<TopContributorsT>(value));
return *
this; }
97 inline void SetUnit(
Unit value) { m_unitHasBeenSet =
true; m_unit = value; }
105 inline long long GetTotal()
const {
return m_total; }
107 inline void SetTotal(
long long value) { m_totalHasBeenSet =
true; m_total = value; }
113 bool m_attackLayerHasBeenSet =
false;
116 bool m_attackPropertyIdentifierHasBeenSet =
false;
119 bool m_topContributorsHasBeenSet =
false;
122 bool m_unitHasBeenSet =
false;
124 long long m_total{0};
125 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