AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
AttackPhase.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/Attack.h>
11#include <aws/guardduty/model/AttackPhaseName.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty {
23namespace Model {
24
32 public:
33 AWS_GUARDDUTY_API AttackPhase() = default;
34 AWS_GUARDDUTY_API AttackPhase(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API AttackPhase& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
48 inline AttackPhaseName GetPhase() const { return m_phase; }
49 inline bool PhaseHasBeenSet() const { return m_phaseHasBeenSet; }
50 inline void SetPhase(AttackPhaseName value) {
51 m_phaseHasBeenSet = true;
52 m_phase = value;
53 }
55 SetPhase(value);
56 return *this;
57 }
59
61
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template <typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) {
68 m_descriptionHasBeenSet = true;
69 m_description = std::forward<DescriptionT>(value);
70 }
71 template <typename DescriptionT = Aws::String>
72 AttackPhase& WithDescription(DescriptionT&& value) {
73 SetDescription(std::forward<DescriptionT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::Vector<Attack>& GetAttacks() const { return m_attacks; }
84 inline bool AttacksHasBeenSet() const { return m_attacksHasBeenSet; }
85 template <typename AttacksT = Aws::Vector<Attack>>
86 void SetAttacks(AttacksT&& value) {
87 m_attacksHasBeenSet = true;
88 m_attacks = std::forward<AttacksT>(value);
89 }
90 template <typename AttacksT = Aws::Vector<Attack>>
91 AttackPhase& WithAttacks(AttacksT&& value) {
92 SetAttacks(std::forward<AttacksT>(value));
93 return *this;
94 }
95 template <typename AttacksT = Attack>
96 AttackPhase& AddAttacks(AttacksT&& value) {
97 m_attacksHasBeenSet = true;
98 m_attacks.emplace_back(std::forward<AttacksT>(value));
99 return *this;
100 }
102 private:
104
105 Aws::String m_description;
106
107 Aws::Vector<Attack> m_attacks;
108 bool m_phaseHasBeenSet = false;
109 bool m_descriptionHasBeenSet = false;
110 bool m_attacksHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace GuardDuty
115} // namespace Aws
void SetPhase(AttackPhaseName value)
Definition AttackPhase.h:50
void SetDescription(DescriptionT &&value)
Definition AttackPhase.h:67
const Aws::Vector< Attack > & GetAttacks() const
Definition AttackPhase.h:83
AttackPhase & WithPhase(AttackPhaseName value)
Definition AttackPhase.h:54
AttackPhaseName GetPhase() const
Definition AttackPhase.h:48
AWS_GUARDDUTY_API AttackPhase()=default
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AttackPhase & WithDescription(DescriptionT &&value)
Definition AttackPhase.h:72
const Aws::String & GetDescription() const
Definition AttackPhase.h:64
AttackPhase & WithAttacks(AttacksT &&value)
Definition AttackPhase.h:91
AWS_GUARDDUTY_API AttackPhase(Aws::Utils::Json::JsonView jsonValue)
AttackPhase & AddAttacks(AttacksT &&value)
Definition AttackPhase.h:96
void SetAttacks(AttacksT &&value)
Definition AttackPhase.h:86
AWS_GUARDDUTY_API AttackPhase & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue