AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SearchableSegmentAttributes.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/connect/model/SearchContactsMatchType.h>
10#include <aws/connect/model/SearchableSegmentAttributesCriteria.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CONNECT_API SearchableSegmentAttributes() = default;
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<SearchableSegmentAttributesCriteria>& GetCriteria() const { return m_criteria; }
48 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
49 template<typename CriteriaT = Aws::Vector<SearchableSegmentAttributesCriteria>>
50 void SetCriteria(CriteriaT&& value) { m_criteriaHasBeenSet = true; m_criteria = std::forward<CriteriaT>(value); }
51 template<typename CriteriaT = Aws::Vector<SearchableSegmentAttributesCriteria>>
52 SearchableSegmentAttributes& WithCriteria(CriteriaT&& value) { SetCriteria(std::forward<CriteriaT>(value)); return *this;}
53 template<typename CriteriaT = SearchableSegmentAttributesCriteria>
54 SearchableSegmentAttributes& AddCriteria(CriteriaT&& value) { m_criteriaHasBeenSet = true; m_criteria.emplace_back(std::forward<CriteriaT>(value)); return *this; }
56
58
62 inline SearchContactsMatchType GetMatchType() const { return m_matchType; }
63 inline bool MatchTypeHasBeenSet() const { return m_matchTypeHasBeenSet; }
64 inline void SetMatchType(SearchContactsMatchType value) { m_matchTypeHasBeenSet = true; m_matchType = value; }
67 private:
68
70 bool m_criteriaHasBeenSet = false;
71
73 bool m_matchTypeHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Connect
78} // 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