AWS SDK for C++  0.14.3
AWS SDK for C++
StopTaskRequest.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>
19 
20 namespace Aws
21 {
22 namespace ECS
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
42  inline const Aws::String& GetCluster() const{ return m_cluster; }
43 
49  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
50 
56  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = value; }
57 
63  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
64 
70  inline StopTaskRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
71 
77  inline StopTaskRequest& WithCluster(Aws::String&& value) { SetCluster(value); return *this;}
78 
84  inline StopTaskRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
85 
89  inline const Aws::String& GetTask() const{ return m_task; }
90 
94  inline void SetTask(const Aws::String& value) { m_taskHasBeenSet = true; m_task = value; }
95 
99  inline void SetTask(Aws::String&& value) { m_taskHasBeenSet = true; m_task = value; }
100 
104  inline void SetTask(const char* value) { m_taskHasBeenSet = true; m_task.assign(value); }
105 
109  inline StopTaskRequest& WithTask(const Aws::String& value) { SetTask(value); return *this;}
110 
114  inline StopTaskRequest& WithTask(Aws::String&& value) { SetTask(value); return *this;}
115 
119  inline StopTaskRequest& WithTask(const char* value) { SetTask(value); return *this;}
120 
128  inline const Aws::String& GetReason() const{ return m_reason; }
129 
137  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
138 
146  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = value; }
147 
155  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
156 
164  inline StopTaskRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
165 
173  inline StopTaskRequest& WithReason(Aws::String&& value) { SetReason(value); return *this;}
174 
182  inline StopTaskRequest& WithReason(const char* value) { SetReason(value); return *this;}
183 
184  private:
185  Aws::String m_cluster;
186  bool m_clusterHasBeenSet;
187  Aws::String m_task;
188  bool m_taskHasBeenSet;
189  Aws::String m_reason;
190  bool m_reasonHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace ECS
195 } // namespace Aws
StopTaskRequest & WithReason(const char *value)
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:37
StopTaskRequest & WithTask(Aws::String &&value)
void SetCluster(const char *value)
StopTaskRequest & WithReason(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetReason(const Aws::String &value)
void SetCluster(Aws::String &&value)
void SetReason(const char *value)
void SetReason(Aws::String &&value)
void SetTask(const char *value)
StopTaskRequest & WithCluster(const Aws::String &value)
void SetTask(Aws::String &&value)
const Aws::String & GetTask() const
StopTaskRequest & WithReason(Aws::String &&value)
StopTaskRequest & WithTask(const char *value)
StopTaskRequest & WithCluster(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetTask(const Aws::String &value)
StopTaskRequest & WithTask(const Aws::String &value)
StopTaskRequest & WithCluster(Aws::String &&value)
const Aws::String & GetReason() const
void SetCluster(const Aws::String &value)
const Aws::String & GetCluster() const
JSON (JavaScript Object Notation).