AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
Recommendation.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/ActionPriority.h>
11#include <aws/guardduty/model/RecommendationCategory.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
31 public:
32 AWS_GUARDDUTY_API Recommendation() = default;
33 AWS_GUARDDUTY_API Recommendation(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetTitle() const { return m_title; }
42 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
43 template <typename TitleT = Aws::String>
44 void SetTitle(TitleT&& value) {
45 m_titleHasBeenSet = true;
46 m_title = std::forward<TitleT>(value);
47 }
48 template <typename TitleT = Aws::String>
49 Recommendation& WithTitle(TitleT&& value) {
50 SetTitle(std::forward<TitleT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetRationale() const { return m_rationale; }
60 inline bool RationaleHasBeenSet() const { return m_rationaleHasBeenSet; }
61 template <typename RationaleT = Aws::String>
62 void SetRationale(RationaleT&& value) {
63 m_rationaleHasBeenSet = true;
64 m_rationale = std::forward<RationaleT>(value);
65 }
66 template <typename RationaleT = Aws::String>
67 Recommendation& WithRationale(RationaleT&& value) {
68 SetRationale(std::forward<RationaleT>(value));
69 return *this;
70 }
72
74
80 inline RecommendationCategory GetCategory() const { return m_category; }
81 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
83 m_categoryHasBeenSet = true;
84 m_category = value;
85 }
87 SetCategory(value);
88 return *this;
89 }
91
93
97 inline ActionPriority GetPriority() const { return m_priority; }
98 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
99 inline void SetPriority(ActionPriority value) {
100 m_priorityHasBeenSet = true;
101 m_priority = value;
102 }
104 SetPriority(value);
105 return *this;
106 }
108
110
113 inline const Aws::Vector<Aws::String>& GetCliCommands() const { return m_cliCommands; }
114 inline bool CliCommandsHasBeenSet() const { return m_cliCommandsHasBeenSet; }
115 template <typename CliCommandsT = Aws::Vector<Aws::String>>
116 void SetCliCommands(CliCommandsT&& value) {
117 m_cliCommandsHasBeenSet = true;
118 m_cliCommands = std::forward<CliCommandsT>(value);
119 }
120 template <typename CliCommandsT = Aws::Vector<Aws::String>>
121 Recommendation& WithCliCommands(CliCommandsT&& value) {
122 SetCliCommands(std::forward<CliCommandsT>(value));
123 return *this;
124 }
125 template <typename CliCommandsT = Aws::String>
126 Recommendation& AddCliCommands(CliCommandsT&& value) {
127 m_cliCommandsHasBeenSet = true;
128 m_cliCommands.emplace_back(std::forward<CliCommandsT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_title;
134
135 Aws::String m_rationale;
136
138
140
141 Aws::Vector<Aws::String> m_cliCommands;
142 bool m_titleHasBeenSet = false;
143 bool m_rationaleHasBeenSet = false;
144 bool m_categoryHasBeenSet = false;
145 bool m_priorityHasBeenSet = false;
146 bool m_cliCommandsHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace GuardDuty
151} // namespace Aws
const Aws::String & GetRationale() const
void SetCategory(RecommendationCategory value)
Recommendation & WithCliCommands(CliCommandsT &&value)
Recommendation & WithTitle(TitleT &&value)
Recommendation & AddCliCommands(CliCommandsT &&value)
const Aws::Vector< Aws::String > & GetCliCommands() const
void SetCliCommands(CliCommandsT &&value)
void SetPriority(ActionPriority value)
RecommendationCategory GetCategory() const
AWS_GUARDDUTY_API Recommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Recommendation()=default
AWS_GUARDDUTY_API Recommendation(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
Recommendation & WithRationale(RationaleT &&value)
Recommendation & WithCategory(RecommendationCategory value)
const Aws::String & GetTitle() const
Recommendation & WithPriority(ActionPriority value)
void SetRationale(RationaleT &&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