AWS SDK for C++  0.14.3
AWS SDK for C++
PollForTaskRequest.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
20 
21 namespace Aws
22 {
23 namespace DataPipeline
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
47  inline const Aws::String& GetWorkerGroup() const{ return m_workerGroup; }
48 
57  inline void SetWorkerGroup(const Aws::String& value) { m_workerGroupHasBeenSet = true; m_workerGroup = value; }
58 
67  inline void SetWorkerGroup(Aws::String&& value) { m_workerGroupHasBeenSet = true; m_workerGroup = value; }
68 
77  inline void SetWorkerGroup(const char* value) { m_workerGroupHasBeenSet = true; m_workerGroup.assign(value); }
78 
87  inline PollForTaskRequest& WithWorkerGroup(const Aws::String& value) { SetWorkerGroup(value); return *this;}
88 
97  inline PollForTaskRequest& WithWorkerGroup(Aws::String&& value) { SetWorkerGroup(value); return *this;}
98 
107  inline PollForTaskRequest& WithWorkerGroup(const char* value) { SetWorkerGroup(value); return *this;}
108 
112  inline const Aws::String& GetHostname() const{ return m_hostname; }
113 
117  inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
118 
122  inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
123 
127  inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
128 
132  inline PollForTaskRequest& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
133 
137  inline PollForTaskRequest& WithHostname(Aws::String&& value) { SetHostname(value); return *this;}
138 
142  inline PollForTaskRequest& WithHostname(const char* value) { SetHostname(value); return *this;}
143 
155  inline const InstanceIdentity& GetInstanceIdentity() const{ return m_instanceIdentity; }
156 
168  inline void SetInstanceIdentity(const InstanceIdentity& value) { m_instanceIdentityHasBeenSet = true; m_instanceIdentity = value; }
169 
181  inline void SetInstanceIdentity(InstanceIdentity&& value) { m_instanceIdentityHasBeenSet = true; m_instanceIdentity = value; }
182 
194  inline PollForTaskRequest& WithInstanceIdentity(const InstanceIdentity& value) { SetInstanceIdentity(value); return *this;}
195 
207  inline PollForTaskRequest& WithInstanceIdentity(InstanceIdentity&& value) { SetInstanceIdentity(value); return *this;}
208 
209  private:
210  Aws::String m_workerGroup;
211  bool m_workerGroupHasBeenSet;
212  Aws::String m_hostname;
213  bool m_hostnameHasBeenSet;
214  InstanceIdentity m_instanceIdentity;
215  bool m_instanceIdentityHasBeenSet;
216  };
217 
218 } // namespace Model
219 } // namespace DataPipeline
220 } // namespace Aws
void SetHostname(const Aws::String &value)
PollForTaskRequest & WithWorkerGroup(const Aws::String &value)
PollForTaskRequest & WithHostname(const char *value)
PollForTaskRequest & WithInstanceIdentity(const InstanceIdentity &value)
PollForTaskRequest & WithInstanceIdentity(InstanceIdentity &&value)
void SetInstanceIdentity(InstanceIdentity &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
const InstanceIdentity & GetInstanceIdentity() const
void SetWorkerGroup(const Aws::String &value)
#define AWS_DATAPIPELINE_API
PollForTaskRequest & WithHostname(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PollForTaskRequest & WithWorkerGroup(Aws::String &&value)
PollForTaskRequest & WithWorkerGroup(const char *value)
void SetInstanceIdentity(const InstanceIdentity &value)
PollForTaskRequest & WithHostname(const Aws::String &value)
JSON (JavaScript Object Notation).