AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AdditionalSearchKey.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
40 {
41 public:
42 AWS_CUSTOMERPROFILES_API AdditionalSearchKey() = default;
43 AWS_CUSTOMERPROFILES_API AdditionalSearchKey(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CUSTOMERPROFILES_API AdditionalSearchKey& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetKeyName() const { return m_keyName; }
53 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
54 template<typename KeyNameT = Aws::String>
55 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet = true; m_keyName = std::forward<KeyNameT>(value); }
56 template<typename KeyNameT = Aws::String>
57 AdditionalSearchKey& WithKeyName(KeyNameT&& value) { SetKeyName(std::forward<KeyNameT>(value)); return *this;}
59
61
64 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
65 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
66 template<typename ValuesT = Aws::Vector<Aws::String>>
67 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
68 template<typename ValuesT = Aws::Vector<Aws::String>>
69 AdditionalSearchKey& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
70 template<typename ValuesT = Aws::String>
71 AdditionalSearchKey& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
73 private:
74
75 Aws::String m_keyName;
76 bool m_keyNameHasBeenSet = false;
77
79 bool m_valuesHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace CustomerProfiles
84} // namespace Aws
AdditionalSearchKey & WithValues(ValuesT &&value)
AdditionalSearchKey & WithKeyName(KeyNameT &&value)
const Aws::Vector< Aws::String > & GetValues() const
AWS_CUSTOMERPROFILES_API AdditionalSearchKey & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API AdditionalSearchKey()=default
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CUSTOMERPROFILES_API AdditionalSearchKey(Aws::Utils::Json::JsonView jsonValue)
AdditionalSearchKey & AddValues(ValuesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue