AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/securityhub/SecurityHub_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
37class Indicator {
38 public:
39 AWS_SECURITYHUB_API Indicator() = default;
40 AWS_SECURITYHUB_API Indicator(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYHUB_API Indicator& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
49 inline const Aws::String& GetKey() const { return m_key; }
50 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
51 template <typename KeyT = Aws::String>
52 void SetKey(KeyT&& value) {
53 m_keyHasBeenSet = true;
54 m_key = std::forward<KeyT>(value);
55 }
56 template <typename KeyT = Aws::String>
57 Indicator& WithKey(KeyT&& value) {
58 SetKey(std::forward<KeyT>(value));
59 return *this;
60 }
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) {
74 m_valuesHasBeenSet = true;
75 m_values = std::forward<ValuesT>(value);
76 }
77 template <typename ValuesT = Aws::Vector<Aws::String>>
78 Indicator& WithValues(ValuesT&& value) {
79 SetValues(std::forward<ValuesT>(value));
80 return *this;
81 }
82 template <typename ValuesT = Aws::String>
83 Indicator& AddValues(ValuesT&& value) {
84 m_valuesHasBeenSet = true;
85 m_values.emplace_back(std::forward<ValuesT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetTitle() const { return m_title; }
95 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
96 template <typename TitleT = Aws::String>
97 void SetTitle(TitleT&& value) {
98 m_titleHasBeenSet = true;
99 m_title = std::forward<TitleT>(value);
100 }
101 template <typename TitleT = Aws::String>
102 Indicator& WithTitle(TitleT&& value) {
103 SetTitle(std::forward<TitleT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetType() const { return m_type; }
113 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
114 template <typename TypeT = Aws::String>
115 void SetType(TypeT&& value) {
116 m_typeHasBeenSet = true;
117 m_type = std::forward<TypeT>(value);
118 }
119 template <typename TypeT = Aws::String>
120 Indicator& WithType(TypeT&& value) {
121 SetType(std::forward<TypeT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_key;
127
129
130 Aws::String m_title;
131
132 Aws::String m_type;
133 bool m_keyHasBeenSet = false;
134 bool m_valuesHasBeenSet = false;
135 bool m_titleHasBeenSet = false;
136 bool m_typeHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace SecurityHub
141} // namespace Aws
const Aws::String & GetKey() const
Definition Indicator.h:49
Indicator & WithType(TypeT &&value)
Definition Indicator.h:120
void SetTitle(TitleT &&value)
Definition Indicator.h:97
AWS_SECURITYHUB_API Indicator & operator=(Aws::Utils::Json::JsonView jsonValue)
Indicator & WithTitle(TitleT &&value)
Definition Indicator.h:102
Indicator & WithKey(KeyT &&value)
Definition Indicator.h:57
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Indicator & WithValues(ValuesT &&value)
Definition Indicator.h:78
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:83
void SetValues(ValuesT &&value)
Definition Indicator.h:73
const Aws::String & GetTitle() const
Definition Indicator.h:94
const Aws::String & GetType() const
Definition Indicator.h:112
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue