AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
FoundByKeyValue.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_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 CustomerProfiles
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_CUSTOMERPROFILES_API FoundByKeyValue() = default;
40 AWS_CUSTOMERPROFILES_API FoundByKeyValue(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CUSTOMERPROFILES_API FoundByKeyValue& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetKeyName() const { return m_keyName; }
50 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
51 template<typename KeyNameT = Aws::String>
52 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet = true; m_keyName = std::forward<KeyNameT>(value); }
53 template<typename KeyNameT = Aws::String>
54 FoundByKeyValue& WithKeyName(KeyNameT&& value) { SetKeyName(std::forward<KeyNameT>(value)); return *this;}
56
58
61 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
62 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
63 template<typename ValuesT = Aws::Vector<Aws::String>>
64 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
65 template<typename ValuesT = Aws::Vector<Aws::String>>
66 FoundByKeyValue& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
67 template<typename ValuesT = Aws::String>
68 FoundByKeyValue& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
70 private:
71
72 Aws::String m_keyName;
73 bool m_keyNameHasBeenSet = false;
74
76 bool m_valuesHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace CustomerProfiles
81} // namespace Aws
AWS_CUSTOMERPROFILES_API FoundByKeyValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API FoundByKeyValue()=default
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
FoundByKeyValue & AddValues(ValuesT &&value)
FoundByKeyValue & WithValues(ValuesT &&value)
FoundByKeyValue & WithKeyName(KeyNameT &&value)
AWS_CUSTOMERPROFILES_API FoundByKeyValue(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetValues() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue