AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeCasesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/support/SupportRequest.h>
10#include <aws/support/Support_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Support {
16namespace Model {
17
21 public:
22 AWS_SUPPORT_API DescribeCasesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DescribeCases"; }
29
30 AWS_SUPPORT_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::Vector<Aws::String>& GetCaseIdList() const { return m_caseIdList; }
40 inline bool CaseIdListHasBeenSet() const { return m_caseIdListHasBeenSet; }
41 template <typename CaseIdListT = Aws::Vector<Aws::String>>
42 void SetCaseIdList(CaseIdListT&& value) {
43 m_caseIdListHasBeenSet = true;
44 m_caseIdList = std::forward<CaseIdListT>(value);
45 }
46 template <typename CaseIdListT = Aws::Vector<Aws::String>>
47 DescribeCasesRequest& WithCaseIdList(CaseIdListT&& value) {
48 SetCaseIdList(std::forward<CaseIdListT>(value));
49 return *this;
50 }
51 template <typename CaseIdListT = Aws::String>
52 DescribeCasesRequest& AddCaseIdList(CaseIdListT&& value) {
53 m_caseIdListHasBeenSet = true;
54 m_caseIdList.emplace_back(std::forward<CaseIdListT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetDisplayId() const { return m_displayId; }
65 inline bool DisplayIdHasBeenSet() const { return m_displayIdHasBeenSet; }
66 template <typename DisplayIdT = Aws::String>
67 void SetDisplayId(DisplayIdT&& value) {
68 m_displayIdHasBeenSet = true;
69 m_displayId = std::forward<DisplayIdT>(value);
70 }
71 template <typename DisplayIdT = Aws::String>
72 DescribeCasesRequest& WithDisplayId(DisplayIdT&& value) {
73 SetDisplayId(std::forward<DisplayIdT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetAfterTime() const { return m_afterTime; }
84 inline bool AfterTimeHasBeenSet() const { return m_afterTimeHasBeenSet; }
85 template <typename AfterTimeT = Aws::String>
86 void SetAfterTime(AfterTimeT&& value) {
87 m_afterTimeHasBeenSet = true;
88 m_afterTime = std::forward<AfterTimeT>(value);
89 }
90 template <typename AfterTimeT = Aws::String>
91 DescribeCasesRequest& WithAfterTime(AfterTimeT&& value) {
92 SetAfterTime(std::forward<AfterTimeT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::String& GetBeforeTime() const { return m_beforeTime; }
103 inline bool BeforeTimeHasBeenSet() const { return m_beforeTimeHasBeenSet; }
104 template <typename BeforeTimeT = Aws::String>
105 void SetBeforeTime(BeforeTimeT&& value) {
106 m_beforeTimeHasBeenSet = true;
107 m_beforeTime = std::forward<BeforeTimeT>(value);
108 }
109 template <typename BeforeTimeT = Aws::String>
110 DescribeCasesRequest& WithBeforeTime(BeforeTimeT&& value) {
111 SetBeforeTime(std::forward<BeforeTimeT>(value));
112 return *this;
113 }
115
117
122 inline bool GetIncludeResolvedCases() const { return m_includeResolvedCases; }
123 inline bool IncludeResolvedCasesHasBeenSet() const { return m_includeResolvedCasesHasBeenSet; }
124 inline void SetIncludeResolvedCases(bool value) {
125 m_includeResolvedCasesHasBeenSet = true;
126 m_includeResolvedCases = value;
127 }
130 return *this;
131 }
133
135
138 inline const Aws::String& GetNextToken() const { return m_nextToken; }
139 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
140 template <typename NextTokenT = Aws::String>
141 void SetNextToken(NextTokenT&& value) {
142 m_nextTokenHasBeenSet = true;
143 m_nextToken = std::forward<NextTokenT>(value);
144 }
145 template <typename NextTokenT = Aws::String>
146 DescribeCasesRequest& WithNextToken(NextTokenT&& value) {
147 SetNextToken(std::forward<NextTokenT>(value));
148 return *this;
149 }
151
153
156 inline int GetMaxResults() const { return m_maxResults; }
157 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
158 inline void SetMaxResults(int value) {
159 m_maxResultsHasBeenSet = true;
160 m_maxResults = value;
161 }
163 SetMaxResults(value);
164 return *this;
165 }
167
169
175 inline const Aws::String& GetLanguage() const { return m_language; }
176 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
177 template <typename LanguageT = Aws::String>
178 void SetLanguage(LanguageT&& value) {
179 m_languageHasBeenSet = true;
180 m_language = std::forward<LanguageT>(value);
181 }
182 template <typename LanguageT = Aws::String>
183 DescribeCasesRequest& WithLanguage(LanguageT&& value) {
184 SetLanguage(std::forward<LanguageT>(value));
185 return *this;
186 }
188
190
194 inline bool GetIncludeCommunications() const { return m_includeCommunications; }
195 inline bool IncludeCommunicationsHasBeenSet() const { return m_includeCommunicationsHasBeenSet; }
196 inline void SetIncludeCommunications(bool value) {
197 m_includeCommunicationsHasBeenSet = true;
198 m_includeCommunications = value;
199 }
202 return *this;
203 }
205 private:
206 Aws::Vector<Aws::String> m_caseIdList;
207
208 Aws::String m_displayId;
209
210 Aws::String m_afterTime;
211
212 Aws::String m_beforeTime;
213
214 bool m_includeResolvedCases{false};
215
216 Aws::String m_nextToken;
217
218 int m_maxResults{0};
219
220 Aws::String m_language;
221
222 bool m_includeCommunications{false};
223 bool m_caseIdListHasBeenSet = false;
224 bool m_displayIdHasBeenSet = false;
225 bool m_afterTimeHasBeenSet = false;
226 bool m_beforeTimeHasBeenSet = false;
227 bool m_includeResolvedCasesHasBeenSet = false;
228 bool m_nextTokenHasBeenSet = false;
229 bool m_maxResultsHasBeenSet = false;
230 bool m_languageHasBeenSet = false;
231 bool m_includeCommunicationsHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace Support
236} // namespace Aws
DescribeCasesRequest & WithLanguage(LanguageT &&value)
DescribeCasesRequest & WithIncludeResolvedCases(bool value)
DescribeCasesRequest & WithIncludeCommunications(bool value)
DescribeCasesRequest & WithBeforeTime(BeforeTimeT &&value)
DescribeCasesRequest & WithAfterTime(AfterTimeT &&value)
DescribeCasesRequest & WithNextToken(NextTokenT &&value)
DescribeCasesRequest & WithCaseIdList(CaseIdListT &&value)
const Aws::Vector< Aws::String > & GetCaseIdList() const
virtual const char * GetServiceRequestName() const override
AWS_SUPPORT_API Aws::String SerializePayload() const override
DescribeCasesRequest & WithDisplayId(DisplayIdT &&value)
AWS_SUPPORT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeCasesRequest & AddCaseIdList(CaseIdListT &&value)
AWS_SUPPORT_API DescribeCasesRequest()=default
DescribeCasesRequest & WithMaxResults(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector