AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
NameCriteria.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/SearchContactsMatchType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
30 public:
31 AWS_CONNECT_API NameCriteria() = default;
32 AWS_CONNECT_API NameCriteria(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Aws::String>& GetSearchText() const { return m_searchText; }
41 inline bool SearchTextHasBeenSet() const { return m_searchTextHasBeenSet; }
42 template <typename SearchTextT = Aws::Vector<Aws::String>>
43 void SetSearchText(SearchTextT&& value) {
44 m_searchTextHasBeenSet = true;
45 m_searchText = std::forward<SearchTextT>(value);
46 }
47 template <typename SearchTextT = Aws::Vector<Aws::String>>
48 NameCriteria& WithSearchText(SearchTextT&& value) {
49 SetSearchText(std::forward<SearchTextT>(value));
50 return *this;
51 }
52 template <typename SearchTextT = Aws::String>
53 NameCriteria& AddSearchText(SearchTextT&& value) {
54 m_searchTextHasBeenSet = true;
55 m_searchText.emplace_back(std::forward<SearchTextT>(value));
56 return *this;
57 }
59
61
65 inline SearchContactsMatchType GetMatchType() const { return m_matchType; }
66 inline bool MatchTypeHasBeenSet() const { return m_matchTypeHasBeenSet; }
68 m_matchTypeHasBeenSet = true;
69 m_matchType = value;
70 }
72 SetMatchType(value);
73 return *this;
74 }
76 private:
77 Aws::Vector<Aws::String> m_searchText;
78
80 bool m_searchTextHasBeenSet = false;
81 bool m_matchTypeHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace Connect
86} // namespace Aws
NameCriteria & WithSearchText(SearchTextT &&value)
AWS_CONNECT_API NameCriteria()=default
void SetMatchType(SearchContactsMatchType value)
NameCriteria & AddSearchText(SearchTextT &&value)
void SetSearchText(SearchTextT &&value)
NameCriteria & WithMatchType(SearchContactsMatchType value)
SearchContactsMatchType GetMatchType() const
const Aws::Vector< Aws::String > & GetSearchText() const
AWS_CONNECT_API NameCriteria(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API NameCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue