AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
Indicator.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/IndicatorType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
30class Indicator {
31 public:
32 AWS_GUARDDUTY_API Indicator() = default;
33 AWS_GUARDDUTY_API Indicator(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GUARDDUTY_API Indicator& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline IndicatorType GetKey() const { return m_key; }
45 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
46 inline void SetKey(IndicatorType value) {
47 m_keyHasBeenSet = true;
48 m_key = value;
49 }
51 SetKey(value);
52 return *this;
53 }
55
57
63 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
64 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
65 template <typename ValuesT = Aws::Vector<Aws::String>>
66 void SetValues(ValuesT&& value) {
67 m_valuesHasBeenSet = true;
68 m_values = std::forward<ValuesT>(value);
69 }
70 template <typename ValuesT = Aws::Vector<Aws::String>>
71 Indicator& WithValues(ValuesT&& value) {
72 SetValues(std::forward<ValuesT>(value));
73 return *this;
74 }
75 template <typename ValuesT = Aws::String>
76 Indicator& AddValues(ValuesT&& value) {
77 m_valuesHasBeenSet = true;
78 m_values.emplace_back(std::forward<ValuesT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetTitle() const { return m_title; }
88 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
89 template <typename TitleT = Aws::String>
90 void SetTitle(TitleT&& value) {
91 m_titleHasBeenSet = true;
92 m_title = std::forward<TitleT>(value);
93 }
94 template <typename TitleT = Aws::String>
95 Indicator& WithTitle(TitleT&& value) {
96 SetTitle(std::forward<TitleT>(value));
97 return *this;
98 }
100 private:
102
104
105 Aws::String m_title;
106 bool m_keyHasBeenSet = false;
107 bool m_valuesHasBeenSet = false;
108 bool m_titleHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace GuardDuty
113} // namespace Aws
void SetKey(IndicatorType value)
Definition Indicator.h:46
Indicator & WithTitle(TitleT &&value)
Definition Indicator.h:95
void SetValues(ValuesT &&value)
Definition Indicator.h:66
Indicator & WithValues(ValuesT &&value)
Definition Indicator.h:71
AWS_GUARDDUTY_API Indicator(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTitle() const
Definition Indicator.h:87
IndicatorType GetKey() const
Definition Indicator.h:44
Indicator & AddValues(ValuesT &&value)
Definition Indicator.h:76
Indicator & WithKey(IndicatorType value)
Definition Indicator.h:50
AWS_GUARDDUTY_API Indicator()=default
void SetTitle(TitleT &&value)
Definition Indicator.h:90
AWS_GUARDDUTY_API Indicator & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetValues() const
Definition Indicator.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue