AWS SDK for C++  0.12.9
AWS SDK for C++
RunTaskRequest.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/ecs/ECS_EXPORTS.h>
17 #include <aws/ecs/ECSRequest.h>
20 
21 namespace Aws
22 {
23 namespace ECS
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
43  inline const Aws::String& GetCluster() const{ return m_cluster; }
44 
50  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
51 
57  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = value; }
58 
64  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
65 
71  inline RunTaskRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
72 
78  inline RunTaskRequest& WithCluster(Aws::String&& value) { SetCluster(value); return *this;}
79 
85  inline RunTaskRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
86 
93  inline const Aws::String& GetTaskDefinition() const{ return m_taskDefinition; }
94 
101  inline void SetTaskDefinition(const Aws::String& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = value; }
102 
109  inline void SetTaskDefinition(Aws::String&& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = value; }
110 
117  inline void SetTaskDefinition(const char* value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition.assign(value); }
118 
125  inline RunTaskRequest& WithTaskDefinition(const Aws::String& value) { SetTaskDefinition(value); return *this;}
126 
133  inline RunTaskRequest& WithTaskDefinition(Aws::String&& value) { SetTaskDefinition(value); return *this;}
134 
141  inline RunTaskRequest& WithTaskDefinition(const char* value) { SetTaskDefinition(value); return *this;}
142 
154  inline const TaskOverride& GetOverrides() const{ return m_overrides; }
155 
167  inline void SetOverrides(const TaskOverride& value) { m_overridesHasBeenSet = true; m_overrides = value; }
168 
180  inline void SetOverrides(TaskOverride&& value) { m_overridesHasBeenSet = true; m_overrides = value; }
181 
193  inline RunTaskRequest& WithOverrides(const TaskOverride& value) { SetOverrides(value); return *this;}
194 
206  inline RunTaskRequest& WithOverrides(TaskOverride&& value) { SetOverrides(value); return *this;}
207 
213  inline long GetCount() const{ return m_count; }
214 
220  inline void SetCount(long value) { m_countHasBeenSet = true; m_count = value; }
221 
227  inline RunTaskRequest& WithCount(long value) { SetCount(value); return *this;}
228 
240  inline const Aws::String& GetStartedBy() const{ return m_startedBy; }
241 
253  inline void SetStartedBy(const Aws::String& value) { m_startedByHasBeenSet = true; m_startedBy = value; }
254 
266  inline void SetStartedBy(Aws::String&& value) { m_startedByHasBeenSet = true; m_startedBy = value; }
267 
279  inline void SetStartedBy(const char* value) { m_startedByHasBeenSet = true; m_startedBy.assign(value); }
280 
292  inline RunTaskRequest& WithStartedBy(const Aws::String& value) { SetStartedBy(value); return *this;}
293 
305  inline RunTaskRequest& WithStartedBy(Aws::String&& value) { SetStartedBy(value); return *this;}
306 
318  inline RunTaskRequest& WithStartedBy(const char* value) { SetStartedBy(value); return *this;}
319 
320  private:
321  Aws::String m_cluster;
322  bool m_clusterHasBeenSet;
323  Aws::String m_taskDefinition;
324  bool m_taskDefinitionHasBeenSet;
325  TaskOverride m_overrides;
326  bool m_overridesHasBeenSet;
327  long m_count;
328  bool m_countHasBeenSet;
329  Aws::String m_startedBy;
330  bool m_startedByHasBeenSet;
331  };
332 
333 } // namespace Model
334 } // namespace ECS
335 } // namespace Aws
RunTaskRequest & WithOverrides(const TaskOverride &value)
RunTaskRequest & WithCluster(Aws::String &&value)
const Aws::String & GetTaskDefinition() const
RunTaskRequest & WithCount(long value)
void SetOverrides(TaskOverride &&value)
void SetCluster(const Aws::String &value)
RunTaskRequest & WithStartedBy(const char *value)
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:34
RunTaskRequest & WithTaskDefinition(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetCluster(const char *value)
const TaskOverride & GetOverrides() const
RunTaskRequest & WithTaskDefinition(const char *value)
RunTaskRequest & WithCluster(const Aws::String &value)
RunTaskRequest & WithCluster(const char *value)
void SetStartedBy(const char *value)
void SetTaskDefinition(const Aws::String &value)
void SetStartedBy(const Aws::String &value)
void SetOverrides(const TaskOverride &value)
void SetStartedBy(Aws::String &&value)
RunTaskRequest & WithOverrides(TaskOverride &&value)
RunTaskRequest & WithStartedBy(Aws::String &&value)
const Aws::String & GetCluster() const
const Aws::String & GetStartedBy() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetTaskDefinition(const char *value)
RunTaskRequest & WithStartedBy(const Aws::String &value)
JSON (JavaScript Object Notation).
RunTaskRequest & WithTaskDefinition(Aws::String &&value)
void SetCluster(Aws::String &&value)
void SetTaskDefinition(Aws::String &&value)