AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Indicator.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/IndicatorType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GUARDDUTY_API Indicator() = default;
38 AWS_GUARDDUTY_API Indicator(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API Indicator& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
50 inline IndicatorType GetKey() const { return m_key; }
51 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
52 inline void SetKey(IndicatorType value) { m_keyHasBeenSet = true; m_key = value; }
53 inline Indicator& WithKey(IndicatorType value) { SetKey(value); return *this;}
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) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
67 template<typename ValuesT = Aws::Vector<Aws::String>>
68 Indicator& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
69 template<typename ValuesT = Aws::String>
70 Indicator& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
72
74
77 inline const Aws::String& GetTitle() const { return m_title; }
78 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
79 template<typename TitleT = Aws::String>
80 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
81 template<typename TitleT = Aws::String>
82 Indicator& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
84 private:
85
87 bool m_keyHasBeenSet = false;
88
90 bool m_valuesHasBeenSet = false;
91
92 Aws::String m_title;
93 bool m_titleHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace GuardDuty
98} // namespace Aws
void SetKey(IndicatorType value)
Definition Indicator.h:52
Indicator & WithTitle(TitleT &&value)
Definition Indicator.h:82
void SetValues(ValuesT &&value)
Definition Indicator.h:66
Indicator & WithValues(ValuesT &&value)
Definition Indicator.h:68
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:77
IndicatorType GetKey() const
Definition Indicator.h:50
Indicator & AddValues(ValuesT &&value)
Definition Indicator.h:70
Indicator & WithKey(IndicatorType value)
Definition Indicator.h:53
AWS_GUARDDUTY_API Indicator()=default
void SetTitle(TitleT &&value)
Definition Indicator.h:80
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