AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
FoundByKeyValue.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/customer-profiles/CustomerProfiles_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CustomerProfiles {
21namespace Model {
22
33 public:
34 AWS_CUSTOMERPROFILES_API FoundByKeyValue() = default;
35 AWS_CUSTOMERPROFILES_API FoundByKeyValue(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CUSTOMERPROFILES_API FoundByKeyValue& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetKeyName() const { return m_keyName; }
44 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
45 template <typename KeyNameT = Aws::String>
46 void SetKeyName(KeyNameT&& value) {
47 m_keyNameHasBeenSet = true;
48 m_keyName = std::forward<KeyNameT>(value);
49 }
50 template <typename KeyNameT = Aws::String>
51 FoundByKeyValue& WithKeyName(KeyNameT&& value) {
52 SetKeyName(std::forward<KeyNameT>(value));
53 return *this;
54 }
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) {
65 m_valuesHasBeenSet = true;
66 m_values = std::forward<ValuesT>(value);
67 }
68 template <typename ValuesT = Aws::Vector<Aws::String>>
69 FoundByKeyValue& WithValues(ValuesT&& value) {
70 SetValues(std::forward<ValuesT>(value));
71 return *this;
72 }
73 template <typename ValuesT = Aws::String>
74 FoundByKeyValue& AddValues(ValuesT&& value) {
75 m_valuesHasBeenSet = true;
76 m_values.emplace_back(std::forward<ValuesT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_keyName;
82
84 bool m_keyNameHasBeenSet = false;
85 bool m_valuesHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace CustomerProfiles
90} // 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