AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; }
46 inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); }
47 inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); }
48 inline SearchCasesRequest& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
49 inline SearchCasesRequest& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
50 inline SearchCasesRequest& WithDomainId(const char* value) { SetDomainId(value); return *this;}
52
54
57 inline const Aws::Vector<FieldIdentifier>& GetFields() const{ return m_fields; }
58 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
59 inline void SetFields(const Aws::Vector<FieldIdentifier>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
60 inline void SetFields(Aws::Vector<FieldIdentifier>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
61 inline SearchCasesRequest& WithFields(const Aws::Vector<FieldIdentifier>& value) { SetFields(value); return *this;}
62 inline SearchCasesRequest& WithFields(Aws::Vector<FieldIdentifier>&& value) { SetFields(std::move(value)); return *this;}
63 inline SearchCasesRequest& AddFields(const FieldIdentifier& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
64 inline SearchCasesRequest& AddFields(FieldIdentifier&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
66
68
71 inline const CaseFilter& GetFilter() const{ return m_filter; }
72 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
73 inline void SetFilter(const CaseFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
74 inline void SetFilter(CaseFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
75 inline SearchCasesRequest& WithFilter(const CaseFilter& value) { SetFilter(value); return *this;}
76 inline SearchCasesRequest& WithFilter(CaseFilter&& value) { SetFilter(std::move(value)); return *this;}
78
80
84 inline int GetMaxResults() const{ return m_maxResults; }
85 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
86 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
87 inline SearchCasesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
89
91
95 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
96 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
97 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
98 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
99 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
100 inline SearchCasesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
101 inline SearchCasesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
102 inline SearchCasesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
104
106
109 inline const Aws::String& GetSearchTerm() const{ return m_searchTerm; }
110 inline bool SearchTermHasBeenSet() const { return m_searchTermHasBeenSet; }
111 inline void SetSearchTerm(const Aws::String& value) { m_searchTermHasBeenSet = true; m_searchTerm = value; }
112 inline void SetSearchTerm(Aws::String&& value) { m_searchTermHasBeenSet = true; m_searchTerm = std::move(value); }
113 inline void SetSearchTerm(const char* value) { m_searchTermHasBeenSet = true; m_searchTerm.assign(value); }
114 inline SearchCasesRequest& WithSearchTerm(const Aws::String& value) { SetSearchTerm(value); return *this;}
115 inline SearchCasesRequest& WithSearchTerm(Aws::String&& value) { SetSearchTerm(std::move(value)); return *this;}
116 inline SearchCasesRequest& WithSearchTerm(const char* value) { SetSearchTerm(value); return *this;}
118
120
124 inline const Aws::Vector<Sort>& GetSorts() const{ return m_sorts; }
125 inline bool SortsHasBeenSet() const { return m_sortsHasBeenSet; }
126 inline void SetSorts(const Aws::Vector<Sort>& value) { m_sortsHasBeenSet = true; m_sorts = value; }
127 inline void SetSorts(Aws::Vector<Sort>&& value) { m_sortsHasBeenSet = true; m_sorts = std::move(value); }
128 inline SearchCasesRequest& WithSorts(const Aws::Vector<Sort>& value) { SetSorts(value); return *this;}
129 inline SearchCasesRequest& WithSorts(Aws::Vector<Sort>&& value) { SetSorts(std::move(value)); return *this;}
130 inline SearchCasesRequest& AddSorts(const Sort& value) { m_sortsHasBeenSet = true; m_sorts.push_back(value); return *this; }
131 inline SearchCasesRequest& AddSorts(Sort&& value) { m_sortsHasBeenSet = true; m_sorts.push_back(std::move(value)); return *this; }
133 private:
134
135 Aws::String m_domainId;
136 bool m_domainIdHasBeenSet = false;
137
139 bool m_fieldsHasBeenSet = false;
140
141 CaseFilter m_filter;
142 bool m_filterHasBeenSet = false;
143
144 int m_maxResults;
145 bool m_maxResultsHasBeenSet = false;
146
147 Aws::String m_nextToken;
148 bool m_nextTokenHasBeenSet = false;
149
150 Aws::String m_searchTerm;
151 bool m_searchTermHasBeenSet = false;
152
153 Aws::Vector<Sort> m_sorts;
154 bool m_sortsHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace ConnectCases
159} // namespace Aws
SearchCasesRequest & WithDomainId(const Aws::String &value)
void SetSorts(Aws::Vector< Sort > &&value)
SearchCasesRequest & WithNextToken(const Aws::String &value)
void SetFields(const Aws::Vector< FieldIdentifier > &value)
SearchCasesRequest & WithFilter(CaseFilter &&value)
void SetFields(Aws::Vector< FieldIdentifier > &&value)
SearchCasesRequest & WithDomainId(Aws::String &&value)
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
SearchCasesRequest & AddFields(const FieldIdentifier &value)
SearchCasesRequest & WithSearchTerm(const Aws::String &value)
SearchCasesRequest & WithSearchTerm(const char *value)
SearchCasesRequest & WithSearchTerm(Aws::String &&value)
SearchCasesRequest & WithMaxResults(int value)
SearchCasesRequest & WithFilter(const CaseFilter &value)
SearchCasesRequest & WithNextToken(Aws::String &&value)
SearchCasesRequest & AddSorts(const Sort &value)
SearchCasesRequest & WithSorts(const Aws::Vector< Sort > &value)
void SetSorts(const Aws::Vector< Sort > &value)
SearchCasesRequest & WithSorts(Aws::Vector< Sort > &&value)
virtual const char * GetServiceRequestName() const override
SearchCasesRequest & WithDomainId(const char *value)
SearchCasesRequest & WithFields(const Aws::Vector< FieldIdentifier > &value)
SearchCasesRequest & WithFields(Aws::Vector< FieldIdentifier > &&value)
SearchCasesRequest & WithNextToken(const char *value)
const Aws::Vector< Sort > & GetSorts() const
void SetNextToken(const Aws::String &value)
const Aws::Vector< FieldIdentifier > & GetFields() const
SearchCasesRequest & AddSorts(Sort &&value)
SearchCasesRequest & AddFields(FieldIdentifier &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector