AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Indicator.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub
23{
24namespace Model
25{
26
42 {
43 public:
44 AWS_SECURITYHUB_API Indicator() = default;
45 AWS_SECURITYHUB_API Indicator(Aws::Utils::Json::JsonView jsonValue);
46 AWS_SECURITYHUB_API Indicator& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const Aws::String& GetKey() const { return m_key; }
56 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
57 template<typename KeyT = Aws::String>
58 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
59 template<typename KeyT = Aws::String>
60 Indicator& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
62
64
70 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
71 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
72 template<typename ValuesT = Aws::Vector<Aws::String>>
73 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
74 template<typename ValuesT = Aws::Vector<Aws::String>>
75 Indicator& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
76 template<typename ValuesT = Aws::String>
77 Indicator& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
79
81
84 inline const Aws::String& GetTitle() const { return m_title; }
85 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
86 template<typename TitleT = Aws::String>
87 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
88 template<typename TitleT = Aws::String>
89 Indicator& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
91
93
96 inline const Aws::String& GetType() const { return m_type; }
97 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
98 template<typename TypeT = Aws::String>
99 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
100 template<typename TypeT = Aws::String>
101 Indicator& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
103 private:
104
105 Aws::String m_key;
106 bool m_keyHasBeenSet = false;
107
109 bool m_valuesHasBeenSet = false;
110
111 Aws::String m_title;
112 bool m_titleHasBeenSet = false;
113
114 Aws::String m_type;
115 bool m_typeHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace SecurityHub
120} // namespace Aws
const Aws::String & GetKey() const
Definition Indicator.h:55
Indicator & WithType(TypeT &&value)
Definition Indicator.h:101
void SetTitle(TitleT &&value)
Definition Indicator.h:87
AWS_SECURITYHUB_API Indicator & operator=(Aws::Utils::Json::JsonView jsonValue)
Indicator & WithTitle(TitleT &&value)
Definition Indicator.h:89
void SetType(TypeT &&value)
Definition Indicator.h:99
Indicator & WithKey(KeyT &&value)
Definition Indicator.h:60
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Indicator & WithValues(ValuesT &&value)
Definition Indicator.h:75
const Aws::Vector< Aws::String > & GetValues() const
Definition Indicator.h:70
AWS_SECURITYHUB_API Indicator(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Indicator()=default
Indicator & AddValues(ValuesT &&value)
Definition Indicator.h:77
void SetValues(ValuesT &&value)
Definition Indicator.h:73
const Aws::String & GetTitle() const
Definition Indicator.h:84
const Aws::String & GetType() const
Definition Indicator.h:96
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue