AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
SearchableSegmentAttributes.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/SearchContactsMatchType.h>
9#include <aws/connect/model/SearchableSegmentAttributesCriteria.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
31 public:
32 AWS_CONNECT_API SearchableSegmentAttributes() = default;
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<SearchableSegmentAttributesCriteria>& GetCriteria() const { return m_criteria; }
42 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
43 template <typename CriteriaT = Aws::Vector<SearchableSegmentAttributesCriteria>>
44 void SetCriteria(CriteriaT&& value) {
45 m_criteriaHasBeenSet = true;
46 m_criteria = std::forward<CriteriaT>(value);
47 }
48 template <typename CriteriaT = Aws::Vector<SearchableSegmentAttributesCriteria>>
50 SetCriteria(std::forward<CriteriaT>(value));
51 return *this;
52 }
53 template <typename CriteriaT = SearchableSegmentAttributesCriteria>
55 m_criteriaHasBeenSet = true;
56 m_criteria.emplace_back(std::forward<CriteriaT>(value));
57 return *this;
58 }
60
62
66 inline SearchContactsMatchType GetMatchType() const { return m_matchType; }
67 inline bool MatchTypeHasBeenSet() const { return m_matchTypeHasBeenSet; }
69 m_matchTypeHasBeenSet = true;
70 m_matchType = value;
71 }
73 SetMatchType(value);
74 return *this;
75 }
77 private:
79
81 bool m_criteriaHasBeenSet = false;
82 bool m_matchTypeHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Connect
87} // namespace Aws
const Aws::Vector< SearchableSegmentAttributesCriteria > & GetCriteria() const
SearchableSegmentAttributes & AddCriteria(CriteriaT &&value)
AWS_CONNECT_API SearchableSegmentAttributes()=default
SearchableSegmentAttributes & WithMatchType(SearchContactsMatchType value)
SearchableSegmentAttributes & WithCriteria(CriteriaT &&value)
AWS_CONNECT_API SearchableSegmentAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API SearchableSegmentAttributes(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue