AWS SDK for C++  0.12.9
AWS SDK for C++
PollForActivityTaskRequest.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 PollForActivityTaskRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
62 
66  inline PollForActivityTaskRequest& WithDomain(Aws::String&& value) { SetDomain(value); return *this;}
67 
71  inline PollForActivityTaskRequest& 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 PollForActivityTaskRequest& WithTaskList(const TaskList& value) { SetTaskList(value); return *this;}
108 
116  inline PollForActivityTaskRequest& WithTaskList(TaskList&& value) { SetTaskList(value); return *this;}
117 
124  inline const Aws::String& GetIdentity() const{ return m_identity; }
125 
132  inline void SetIdentity(const Aws::String& value) { m_identityHasBeenSet = true; m_identity = value; }
133 
140  inline void SetIdentity(Aws::String&& value) { m_identityHasBeenSet = true; m_identity = value; }
141 
148  inline void SetIdentity(const char* value) { m_identityHasBeenSet = true; m_identity.assign(value); }
149 
156  inline PollForActivityTaskRequest& WithIdentity(const Aws::String& value) { SetIdentity(value); return *this;}
157 
164  inline PollForActivityTaskRequest& WithIdentity(Aws::String&& value) { SetIdentity(value); return *this;}
165 
172  inline PollForActivityTaskRequest& WithIdentity(const char* value) { SetIdentity(value); return *this;}
173 
174  private:
175  Aws::String m_domain;
176  bool m_domainHasBeenSet;
177  TaskList m_taskList;
178  bool m_taskListHasBeenSet;
179  Aws::String m_identity;
180  bool m_identityHasBeenSet;
181  };
182 
183 } // namespace Model
184 } // namespace SWF
185 } // namespace Aws
PollForActivityTaskRequest & WithTaskList(const TaskList &value)
PollForActivityTaskRequest & WithTaskList(TaskList &&value)
#define AWS_SWF_API
Definition: SWF_EXPORTS.h:34
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
PollForActivityTaskRequest & WithDomain(const Aws::String &value)
PollForActivityTaskRequest & WithDomain(const char *value)
PollForActivityTaskRequest & WithIdentity(const char *value)
PollForActivityTaskRequest & WithDomain(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PollForActivityTaskRequest & WithIdentity(Aws::String &&value)
PollForActivityTaskRequest & WithIdentity(const Aws::String &value)
JSON (JavaScript Object Notation).