7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/shield/model/SubResourceSummary.h>
12#include <aws/shield/model/SummarizedCounter.h>
13#include <aws/shield/model/AttackProperty.h>
14#include <aws/shield/model/Mitigation.h>
52 template<
typename AttackIdT = Aws::String>
53 void SetAttackId(AttackIdT&& value) { m_attackIdHasBeenSet =
true; m_attackId = std::forward<AttackIdT>(value); }
54 template<
typename AttackIdT = Aws::String>
64 template<
typename ResourceArnT = Aws::String>
65 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet =
true; m_resourceArn = std::forward<ResourceArnT>(value); }
66 template<
typename ResourceArnT = Aws::String>
77 template<
typename SubResourcesT = Aws::Vector<SubResourceSummary>>
78 void SetSubResources(SubResourcesT&& value) { m_subResourcesHasBeenSet =
true; m_subResources = std::forward<SubResourcesT>(value); }
79 template<
typename SubResourcesT = Aws::Vector<SubResourceSummary>>
81 template<
typename SubResourcesT = SubResourceSummary>
82 AttackDetail&
AddSubResources(SubResourcesT&& value) { m_subResourcesHasBeenSet =
true; m_subResources.emplace_back(std::forward<SubResourcesT>(value));
return *
this; }
91 template<
typename StartTimeT = Aws::Utils::DateTime>
92 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet =
true; m_startTime = std::forward<StartTimeT>(value); }
93 template<
typename StartTimeT = Aws::Utils::DateTime>
103 template<
typename EndTimeT = Aws::Utils::DateTime>
104 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet =
true; m_endTime = std::forward<EndTimeT>(value); }
105 template<
typename EndTimeT = Aws::Utils::DateTime>
115 template<
typename AttackCountersT = Aws::Vector<SummarizedCounter>>
116 void SetAttackCounters(AttackCountersT&& value) { m_attackCountersHasBeenSet =
true; m_attackCounters = std::forward<AttackCountersT>(value); }
117 template<
typename AttackCountersT = Aws::Vector<SummarizedCounter>>
119 template<
typename AttackCountersT = SummarizedCounter>
120 AttackDetail&
AddAttackCounters(AttackCountersT&& value) { m_attackCountersHasBeenSet =
true; m_attackCounters.emplace_back(std::forward<AttackCountersT>(value));
return *
this; }
133 template<
typename AttackPropertiesT = Aws::Vector<AttackProperty>>
134 void SetAttackProperties(AttackPropertiesT&& value) { m_attackPropertiesHasBeenSet =
true; m_attackProperties = std::forward<AttackPropertiesT>(value); }
135 template<
typename AttackPropertiesT = Aws::Vector<AttackProperty>>
137 template<
typename AttackPropertiesT = AttackProperty>
138 AttackDetail&
AddAttackProperties(AttackPropertiesT&& value) { m_attackPropertiesHasBeenSet =
true; m_attackProperties.emplace_back(std::forward<AttackPropertiesT>(value));
return *
this; }
147 template<
typename MitigationsT = Aws::Vector<Mitigation>>
148 void SetMitigations(MitigationsT&& value) { m_mitigationsHasBeenSet =
true; m_mitigations = std::forward<MitigationsT>(value); }
149 template<
typename MitigationsT = Aws::Vector<Mitigation>>
151 template<
typename MitigationsT = Mitigation>
152 AttackDetail&
AddMitigations(MitigationsT&& value) { m_mitigationsHasBeenSet =
true; m_mitigations.emplace_back(std::forward<MitigationsT>(value));
return *
this; }
157 bool m_attackIdHasBeenSet =
false;
160 bool m_resourceArnHasBeenSet =
false;
163 bool m_subResourcesHasBeenSet =
false;
166 bool m_startTimeHasBeenSet =
false;
169 bool m_endTimeHasBeenSet =
false;
172 bool m_attackCountersHasBeenSet =
false;
175 bool m_attackPropertiesHasBeenSet =
false;
178 bool m_mitigationsHasBeenSet =
false;
void SetResourceArn(ResourceArnT &&value)
bool StartTimeHasBeenSet() const
void SetAttackCounters(AttackCountersT &&value)
AttackDetail & WithAttackCounters(AttackCountersT &&value)
const Aws::String & GetAttackId() const
AttackDetail & WithSubResources(SubResourcesT &&value)
AttackDetail & AddAttackCounters(AttackCountersT &&value)
bool AttackPropertiesHasBeenSet() const
void SetEndTime(EndTimeT &&value)
AWS_SHIELD_API AttackDetail(Aws::Utils::Json::JsonView jsonValue)
void SetAttackProperties(AttackPropertiesT &&value)
const Aws::Utils::DateTime & GetStartTime() const
AttackDetail & WithAttackId(AttackIdT &&value)
void SetSubResources(SubResourcesT &&value)
void SetStartTime(StartTimeT &&value)
bool MitigationsHasBeenSet() const
const Aws::Vector< SummarizedCounter > & GetAttackCounters() const
bool EndTimeHasBeenSet() const
AWS_SHIELD_API AttackDetail()=default
const Aws::Vector< Mitigation > & GetMitigations() const
AttackDetail & WithResourceArn(ResourceArnT &&value)
AttackDetail & WithAttackProperties(AttackPropertiesT &&value)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
bool SubResourcesHasBeenSet() const
bool ResourceArnHasBeenSet() const
void SetMitigations(MitigationsT &&value)
const Aws::String & GetResourceArn() const
bool AttackIdHasBeenSet() const
AttackDetail & WithEndTime(EndTimeT &&value)
bool AttackCountersHasBeenSet() const
AWS_SHIELD_API AttackDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndTime() const
AttackDetail & AddMitigations(MitigationsT &&value)
AttackDetail & WithStartTime(StartTimeT &&value)
void SetAttackId(AttackIdT &&value)
const Aws::Vector< SubResourceSummary > & GetSubResources() const
const Aws::Vector< AttackProperty > & GetAttackProperties() const
AttackDetail & AddSubResources(SubResourcesT &&value)
AttackDetail & AddAttackProperties(AttackPropertiesT &&value)
AttackDetail & WithMitigations(MitigationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue