AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
Countermeasure.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/CountermeasureAction.h>
11#include <aws/guardduty/model/DefenseTactic.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 Countermeasure() = default;
34 AWS_GUARDDUTY_API Countermeasure(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline DefenseTactic GetDefenseTactic() const { return m_defenseTactic; }
45 inline bool DefenseTacticHasBeenSet() const { return m_defenseTacticHasBeenSet; }
46 inline void SetDefenseTactic(DefenseTactic value) {
47 m_defenseTacticHasBeenSet = true;
48 m_defenseTactic = value;
49 }
51 SetDefenseTactic(value);
52 return *this;
53 }
55
57
60 inline const Aws::Vector<CountermeasureAction>& GetActions() const { return m_actions; }
61 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
62 template <typename ActionsT = Aws::Vector<CountermeasureAction>>
63 void SetActions(ActionsT&& value) {
64 m_actionsHasBeenSet = true;
65 m_actions = std::forward<ActionsT>(value);
66 }
67 template <typename ActionsT = Aws::Vector<CountermeasureAction>>
68 Countermeasure& WithActions(ActionsT&& value) {
69 SetActions(std::forward<ActionsT>(value));
70 return *this;
71 }
72 template <typename ActionsT = CountermeasureAction>
73 Countermeasure& AddActions(ActionsT&& value) {
74 m_actionsHasBeenSet = true;
75 m_actions.emplace_back(std::forward<ActionsT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template <typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) {
88 m_descriptionHasBeenSet = true;
89 m_description = std::forward<DescriptionT>(value);
90 }
91 template <typename DescriptionT = Aws::String>
92 Countermeasure& WithDescription(DescriptionT&& value) {
93 SetDescription(std::forward<DescriptionT>(value));
94 return *this;
95 }
97 private:
99
101
102 Aws::String m_description;
103 bool m_defenseTacticHasBeenSet = false;
104 bool m_actionsHasBeenSet = false;
105 bool m_descriptionHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace GuardDuty
110} // namespace Aws
Countermeasure & WithDefenseTactic(DefenseTactic value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API Countermeasure()=default
Countermeasure & WithActions(ActionsT &&value)
const Aws::String & GetDescription() const
AWS_GUARDDUTY_API Countermeasure(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Countermeasure & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
Countermeasure & AddActions(ActionsT &&value)
Countermeasure & WithDescription(DescriptionT &&value)
void SetDefenseTactic(DefenseTactic value)
const Aws::Vector< CountermeasureAction > & GetActions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue