AWS SDK for C++  0.14.3
AWS SDK for C++
ReportTaskRunnerHeartbeatRequest.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
19 
20 namespace Aws
21 {
22 namespace DataPipeline
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
45  inline const Aws::String& GetTaskrunnerId() const{ return m_taskrunnerId; }
46 
54  inline void SetTaskrunnerId(const Aws::String& value) { m_taskrunnerIdHasBeenSet = true; m_taskrunnerId = value; }
55 
63  inline void SetTaskrunnerId(Aws::String&& value) { m_taskrunnerIdHasBeenSet = true; m_taskrunnerId = value; }
64 
72  inline void SetTaskrunnerId(const char* value) { m_taskrunnerIdHasBeenSet = true; m_taskrunnerId.assign(value); }
73 
81  inline ReportTaskRunnerHeartbeatRequest& WithTaskrunnerId(const Aws::String& value) { SetTaskrunnerId(value); return *this;}
82 
90  inline ReportTaskRunnerHeartbeatRequest& WithTaskrunnerId(Aws::String&& value) { SetTaskrunnerId(value); return *this;}
91 
99  inline ReportTaskRunnerHeartbeatRequest& WithTaskrunnerId(const char* value) { SetTaskrunnerId(value); return *this;}
100 
108  inline const Aws::String& GetWorkerGroup() const{ return m_workerGroup; }
109 
117  inline void SetWorkerGroup(const Aws::String& value) { m_workerGroupHasBeenSet = true; m_workerGroup = value; }
118 
126  inline void SetWorkerGroup(Aws::String&& value) { m_workerGroupHasBeenSet = true; m_workerGroup = value; }
127 
135  inline void SetWorkerGroup(const char* value) { m_workerGroupHasBeenSet = true; m_workerGroup.assign(value); }
136 
144  inline ReportTaskRunnerHeartbeatRequest& WithWorkerGroup(const Aws::String& value) { SetWorkerGroup(value); return *this;}
145 
153  inline ReportTaskRunnerHeartbeatRequest& WithWorkerGroup(Aws::String&& value) { SetWorkerGroup(value); return *this;}
154 
162  inline ReportTaskRunnerHeartbeatRequest& WithWorkerGroup(const char* value) { SetWorkerGroup(value); return *this;}
163 
167  inline const Aws::String& GetHostname() const{ return m_hostname; }
168 
172  inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
173 
177  inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
178 
182  inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
183 
187  inline ReportTaskRunnerHeartbeatRequest& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
188 
192  inline ReportTaskRunnerHeartbeatRequest& WithHostname(Aws::String&& value) { SetHostname(value); return *this;}
193 
197  inline ReportTaskRunnerHeartbeatRequest& WithHostname(const char* value) { SetHostname(value); return *this;}
198 
199  private:
200  Aws::String m_taskrunnerId;
201  bool m_taskrunnerIdHasBeenSet;
202  Aws::String m_workerGroup;
203  bool m_workerGroupHasBeenSet;
204  Aws::String m_hostname;
205  bool m_hostnameHasBeenSet;
206  };
207 
208 } // namespace Model
209 } // namespace DataPipeline
210 } // namespace Aws
ReportTaskRunnerHeartbeatRequest & WithTaskrunnerId(const char *value)
ReportTaskRunnerHeartbeatRequest & WithWorkerGroup(Aws::String &&value)
ReportTaskRunnerHeartbeatRequest & WithHostname(const char *value)
ReportTaskRunnerHeartbeatRequest & WithWorkerGroup(const char *value)
ReportTaskRunnerHeartbeatRequest & WithHostname(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
#define AWS_DATAPIPELINE_API
ReportTaskRunnerHeartbeatRequest & WithWorkerGroup(const Aws::String &value)
ReportTaskRunnerHeartbeatRequest & WithTaskrunnerId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ReportTaskRunnerHeartbeatRequest & WithTaskrunnerId(Aws::String &&value)
ReportTaskRunnerHeartbeatRequest & WithHostname(Aws::String &&value)
JSON (JavaScript Object Notation).