AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
AdditionalSearchKey.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
36 public:
37 AWS_CUSTOMERPROFILES_API AdditionalSearchKey() = default;
38 AWS_CUSTOMERPROFILES_API AdditionalSearchKey(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CUSTOMERPROFILES_API AdditionalSearchKey& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetKeyName() const { return m_keyName; }
47 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
48 template <typename KeyNameT = Aws::String>
49 void SetKeyName(KeyNameT&& value) {
50 m_keyNameHasBeenSet = true;
51 m_keyName = std::forward<KeyNameT>(value);
52 }
53 template <typename KeyNameT = Aws::String>
54 AdditionalSearchKey& WithKeyName(KeyNameT&& value) {
55 SetKeyName(std::forward<KeyNameT>(value));
56 return *this;
57 }
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) {
68 m_valuesHasBeenSet = true;
69 m_values = std::forward<ValuesT>(value);
70 }
71 template <typename ValuesT = Aws::Vector<Aws::String>>
72 AdditionalSearchKey& WithValues(ValuesT&& value) {
73 SetValues(std::forward<ValuesT>(value));
74 return *this;
75 }
76 template <typename ValuesT = Aws::String>
77 AdditionalSearchKey& AddValues(ValuesT&& value) {
78 m_valuesHasBeenSet = true;
79 m_values.emplace_back(std::forward<ValuesT>(value));
80 return *this;
81 }
83 private:
84 Aws::String m_keyName;
85
87 bool m_keyNameHasBeenSet = false;
88 bool m_valuesHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace CustomerProfiles
93} // 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