AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SearchCasesRequest.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/ConnectCasesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/connectcases/model/CaseFilter.h>
12#include <aws/connectcases/model/FieldIdentifier.h>
13#include <aws/connectcases/model/Sort.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ConnectCases
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CONNECTCASES_API SearchCasesRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "SearchCases"; }
35
36 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetDomainId() const { return m_domainId; }
44 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
45 template<typename DomainIdT = Aws::String>
46 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
47 template<typename DomainIdT = Aws::String>
48 SearchCasesRequest& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
50
52
55 inline const Aws::Vector<FieldIdentifier>& GetFields() const { return m_fields; }
56 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
57 template<typename FieldsT = Aws::Vector<FieldIdentifier>>
58 void SetFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields = std::forward<FieldsT>(value); }
59 template<typename FieldsT = Aws::Vector<FieldIdentifier>>
60 SearchCasesRequest& WithFields(FieldsT&& value) { SetFields(std::forward<FieldsT>(value)); return *this;}
61 template<typename FieldsT = FieldIdentifier>
62 SearchCasesRequest& AddFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields.emplace_back(std::forward<FieldsT>(value)); return *this; }
64
66
69 inline const CaseFilter& GetFilter() const { return m_filter; }
70 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
71 template<typename FilterT = CaseFilter>
72 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
73 template<typename FilterT = CaseFilter>
74 SearchCasesRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
76
78
82 inline int GetMaxResults() const { return m_maxResults; }
83 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
84 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
85 inline SearchCasesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
87
89
93 inline const Aws::String& GetNextToken() const { return m_nextToken; }
94 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
95 template<typename NextTokenT = Aws::String>
96 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
97 template<typename NextTokenT = Aws::String>
98 SearchCasesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
100
102
105 inline const Aws::String& GetSearchTerm() const { return m_searchTerm; }
106 inline bool SearchTermHasBeenSet() const { return m_searchTermHasBeenSet; }
107 template<typename SearchTermT = Aws::String>
108 void SetSearchTerm(SearchTermT&& value) { m_searchTermHasBeenSet = true; m_searchTerm = std::forward<SearchTermT>(value); }
109 template<typename SearchTermT = Aws::String>
110 SearchCasesRequest& WithSearchTerm(SearchTermT&& value) { SetSearchTerm(std::forward<SearchTermT>(value)); return *this;}
112
114
118 inline const Aws::Vector<Sort>& GetSorts() const { return m_sorts; }
119 inline bool SortsHasBeenSet() const { return m_sortsHasBeenSet; }
120 template<typename SortsT = Aws::Vector<Sort>>
121 void SetSorts(SortsT&& value) { m_sortsHasBeenSet = true; m_sorts = std::forward<SortsT>(value); }
122 template<typename SortsT = Aws::Vector<Sort>>
123 SearchCasesRequest& WithSorts(SortsT&& value) { SetSorts(std::forward<SortsT>(value)); return *this;}
124 template<typename SortsT = Sort>
125 SearchCasesRequest& AddSorts(SortsT&& value) { m_sortsHasBeenSet = true; m_sorts.emplace_back(std::forward<SortsT>(value)); return *this; }
127 private:
128
129 Aws::String m_domainId;
130 bool m_domainIdHasBeenSet = false;
131
133 bool m_fieldsHasBeenSet = false;
134
135 CaseFilter m_filter;
136 bool m_filterHasBeenSet = false;
137
138 int m_maxResults{0};
139 bool m_maxResultsHasBeenSet = false;
140
141 Aws::String m_nextToken;
142 bool m_nextTokenHasBeenSet = false;
143
144 Aws::String m_searchTerm;
145 bool m_searchTermHasBeenSet = false;
146
147 Aws::Vector<Sort> m_sorts;
148 bool m_sortsHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace ConnectCases
153} // namespace Aws
SearchCasesRequest & WithDomainId(DomainIdT &&value)
SearchCasesRequest & WithSearchTerm(SearchTermT &&value)
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
SearchCasesRequest & AddFields(FieldsT &&value)
SearchCasesRequest & WithSorts(SortsT &&value)
SearchCasesRequest & WithMaxResults(int value)
AWS_CONNECTCASES_API SearchCasesRequest()=default
virtual const char * GetServiceRequestName() const override
SearchCasesRequest & WithFields(FieldsT &&value)
const Aws::Vector< Sort > & GetSorts() const
const Aws::Vector< FieldIdentifier > & GetFields() const
SearchCasesRequest & WithFilter(FilterT &&value)
SearchCasesRequest & WithNextToken(NextTokenT &&value)
SearchCasesRequest & AddSorts(SortsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector