AWS SDK for C++  0.12.9
AWS SDK for C++
PollForDecisionTaskRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/swf/SWF_EXPORTS.h>
17 #include <aws/swf/SWFRequest.h>
19 #include <aws/swf/model/TaskList.h>
20 
21 namespace Aws
22 {
23 namespace SWF
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
41  inline const Aws::String& GetDomain() const{ return m_domain; }
42 
46  inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
47 
51  inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = value; }
52 
56  inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
57 
61  inline PollForDecisionTaskRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
62 
66  inline PollForDecisionTaskRequest& WithDomain(Aws::String&& value) { SetDomain(value); return *this;}
67 
71  inline PollForDecisionTaskRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
72 
80  inline const TaskList& GetTaskList() const{ return m_taskList; }
81 
89  inline void SetTaskList(const TaskList& value) { m_taskListHasBeenSet = true; m_taskList = value; }
90 
98  inline void SetTaskList(TaskList&& value) { m_taskListHasBeenSet = true; m_taskList = value; }
99 
107  inline PollForDecisionTaskRequest& WithTaskList(const TaskList& value) { SetTaskList(value); return *this;}
108 
116  inline PollForDecisionTaskRequest& WithTaskList(TaskList&& value) { SetTaskList(value); return *this;}
117 
123  inline const Aws::String& GetIdentity() const{ return m_identity; }
124 
130  inline void SetIdentity(const Aws::String& value) { m_identityHasBeenSet = true; m_identity = value; }
131 
137  inline void SetIdentity(Aws::String&& value) { m_identityHasBeenSet = true; m_identity = value; }
138 
144  inline void SetIdentity(const char* value) { m_identityHasBeenSet = true; m_identity.assign(value); }
145 
151  inline PollForDecisionTaskRequest& WithIdentity(const Aws::String& value) { SetIdentity(value); return *this;}
152 
158  inline PollForDecisionTaskRequest& WithIdentity(Aws::String&& value) { SetIdentity(value); return *this;}
159 
165  inline PollForDecisionTaskRequest& WithIdentity(const char* value) { SetIdentity(value); return *this;}
166 
179  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
180 
193  inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; }
194 
207  inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; }
208 
221  inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); }
222 
235  inline PollForDecisionTaskRequest& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
236 
249  inline PollForDecisionTaskRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(value); return *this;}
250 
263  inline PollForDecisionTaskRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
264 
273  inline long GetMaximumPageSize() const{ return m_maximumPageSize; }
274 
283  inline void SetMaximumPageSize(long value) { m_maximumPageSizeHasBeenSet = true; m_maximumPageSize = value; }
284 
293  inline PollForDecisionTaskRequest& WithMaximumPageSize(long value) { SetMaximumPageSize(value); return *this;}
294 
300  inline bool GetReverseOrder() const{ return m_reverseOrder; }
301 
307  inline void SetReverseOrder(bool value) { m_reverseOrderHasBeenSet = true; m_reverseOrder = value; }
308 
314  inline PollForDecisionTaskRequest& WithReverseOrder(bool value) { SetReverseOrder(value); return *this;}
315 
316  private:
317  Aws::String m_domain;
318  bool m_domainHasBeenSet;
319  TaskList m_taskList;
320  bool m_taskListHasBeenSet;
321  Aws::String m_identity;
322  bool m_identityHasBeenSet;
323  Aws::String m_nextPageToken;
324  bool m_nextPageTokenHasBeenSet;
325  long m_maximumPageSize;
326  bool m_maximumPageSizeHasBeenSet;
327  bool m_reverseOrder;
328  bool m_reverseOrderHasBeenSet;
329  };
330 
331 } // namespace Model
332 } // namespace SWF
333 } // namespace Aws
PollForDecisionTaskRequest & WithIdentity(const Aws::String &value)
#define AWS_SWF_API
Definition: SWF_EXPORTS.h:34
PollForDecisionTaskRequest & WithNextPageToken(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
PollForDecisionTaskRequest & WithReverseOrder(bool value)
PollForDecisionTaskRequest & WithDomain(const Aws::String &value)
PollForDecisionTaskRequest & WithNextPageToken(Aws::String &&value)
PollForDecisionTaskRequest & WithIdentity(const char *value)
PollForDecisionTaskRequest & WithMaximumPageSize(long value)
PollForDecisionTaskRequest & WithTaskList(TaskList &&value)
PollForDecisionTaskRequest & WithIdentity(Aws::String &&value)
PollForDecisionTaskRequest & WithTaskList(const TaskList &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PollForDecisionTaskRequest & WithDomain(Aws::String &&value)
PollForDecisionTaskRequest & WithNextPageToken(const Aws::String &value)
PollForDecisionTaskRequest & WithDomain(const char *value)
JSON (JavaScript Object Notation).