AWS SDK for C++  0.12.9
AWS SDK for C++
ListTasksRequest.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 ListTasksRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
72 
78  inline ListTasksRequest& WithCluster(Aws::String&& value) { SetCluster(value); return *this;}
79 
85  inline ListTasksRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
86 
93  inline const Aws::String& GetContainerInstance() const{ return m_containerInstance; }
94 
101  inline void SetContainerInstance(const Aws::String& value) { m_containerInstanceHasBeenSet = true; m_containerInstance = value; }
102 
109  inline void SetContainerInstance(Aws::String&& value) { m_containerInstanceHasBeenSet = true; m_containerInstance = value; }
110 
117  inline void SetContainerInstance(const char* value) { m_containerInstanceHasBeenSet = true; m_containerInstance.assign(value); }
118 
125  inline ListTasksRequest& WithContainerInstance(const Aws::String& value) { SetContainerInstance(value); return *this;}
126 
133  inline ListTasksRequest& WithContainerInstance(Aws::String&& value) { SetContainerInstance(value); return *this;}
134 
141  inline ListTasksRequest& WithContainerInstance(const char* value) { SetContainerInstance(value); return *this;}
142 
148  inline const Aws::String& GetFamily() const{ return m_family; }
149 
155  inline void SetFamily(const Aws::String& value) { m_familyHasBeenSet = true; m_family = value; }
156 
162  inline void SetFamily(Aws::String&& value) { m_familyHasBeenSet = true; m_family = value; }
163 
169  inline void SetFamily(const char* value) { m_familyHasBeenSet = true; m_family.assign(value); }
170 
176  inline ListTasksRequest& WithFamily(const Aws::String& value) { SetFamily(value); return *this;}
177 
183  inline ListTasksRequest& WithFamily(Aws::String&& value) { SetFamily(value); return *this;}
184 
190  inline ListTasksRequest& WithFamily(const char* value) { SetFamily(value); return *this;}
191 
202  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
203 
214  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
215 
226  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
227 
238  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
239 
250  inline ListTasksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
251 
262  inline ListTasksRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
263 
274  inline ListTasksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
275 
286  inline long GetMaxResults() const{ return m_maxResults; }
287 
298  inline void SetMaxResults(long value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
299 
310  inline ListTasksRequest& WithMaxResults(long value) { SetMaxResults(value); return *this;}
311 
317  inline const Aws::String& GetStartedBy() const{ return m_startedBy; }
318 
324  inline void SetStartedBy(const Aws::String& value) { m_startedByHasBeenSet = true; m_startedBy = value; }
325 
331  inline void SetStartedBy(Aws::String&& value) { m_startedByHasBeenSet = true; m_startedBy = value; }
332 
338  inline void SetStartedBy(const char* value) { m_startedByHasBeenSet = true; m_startedBy.assign(value); }
339 
345  inline ListTasksRequest& WithStartedBy(const Aws::String& value) { SetStartedBy(value); return *this;}
346 
352  inline ListTasksRequest& WithStartedBy(Aws::String&& value) { SetStartedBy(value); return *this;}
353 
359  inline ListTasksRequest& WithStartedBy(const char* value) { SetStartedBy(value); return *this;}
360 
366  inline const Aws::String& GetServiceName() const{ return m_serviceName; }
367 
373  inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
374 
380  inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
381 
387  inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
388 
394  inline ListTasksRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
395 
401  inline ListTasksRequest& WithServiceName(Aws::String&& value) { SetServiceName(value); return *this;}
402 
408  inline ListTasksRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
409 
417  inline const DesiredStatus& GetDesiredStatus() const{ return m_desiredStatus; }
418 
426  inline void SetDesiredStatus(const DesiredStatus& value) { m_desiredStatusHasBeenSet = true; m_desiredStatus = value; }
427 
435  inline void SetDesiredStatus(DesiredStatus&& value) { m_desiredStatusHasBeenSet = true; m_desiredStatus = value; }
436 
444  inline ListTasksRequest& WithDesiredStatus(const DesiredStatus& value) { SetDesiredStatus(value); return *this;}
445 
453  inline ListTasksRequest& WithDesiredStatus(DesiredStatus&& value) { SetDesiredStatus(value); return *this;}
454 
455  private:
456  Aws::String m_cluster;
457  bool m_clusterHasBeenSet;
458  Aws::String m_containerInstance;
459  bool m_containerInstanceHasBeenSet;
460  Aws::String m_family;
461  bool m_familyHasBeenSet;
462  Aws::String m_nextToken;
463  bool m_nextTokenHasBeenSet;
464  long m_maxResults;
465  bool m_maxResultsHasBeenSet;
466  Aws::String m_startedBy;
467  bool m_startedByHasBeenSet;
468  Aws::String m_serviceName;
469  bool m_serviceNameHasBeenSet;
470  DesiredStatus m_desiredStatus;
471  bool m_desiredStatusHasBeenSet;
472  };
473 
474 } // namespace Model
475 } // namespace ECS
476 } // namespace Aws
const DesiredStatus & GetDesiredStatus() const
void SetContainerInstance(const char *value)
ListTasksRequest & WithNextToken(const char *value)
const Aws::String & GetStartedBy() const
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:34
ListTasksRequest & WithNextToken(Aws::String &&value)
void SetContainerInstance(const Aws::String &value)
ListTasksRequest & WithContainerInstance(const Aws::String &value)
void SetCluster(Aws::String &&value)
ListTasksRequest & WithMaxResults(long value)
void SetServiceName(const char *value)
void SetServiceName(const Aws::String &value)
void SetContainerInstance(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetFamily(const char *value)
ListTasksRequest & WithServiceName(const Aws::String &value)
ListTasksRequest & WithContainerInstance(const char *value)
ListTasksRequest & WithStartedBy(Aws::String &&value)
void SetCluster(const char *value)
void SetServiceName(Aws::String &&value)
void SetNextToken(const Aws::String &value)
ListTasksRequest & WithCluster(const Aws::String &value)
ListTasksRequest & WithDesiredStatus(const DesiredStatus &value)
ListTasksRequest & WithFamily(const Aws::String &value)
ListTasksRequest & WithDesiredStatus(DesiredStatus &&value)
ListTasksRequest & WithFamily(const char *value)
const Aws::String & GetFamily() const
void SetDesiredStatus(const DesiredStatus &value)
ListTasksRequest & WithServiceName(const char *value)
void SetNextToken(const char *value)
ListTasksRequest & WithStartedBy(const char *value)
const Aws::String & GetContainerInstance() const
const Aws::String & GetServiceName() const
ListTasksRequest & WithCluster(const char *value)
ListTasksRequest & WithStartedBy(const Aws::String &value)
ListTasksRequest & WithFamily(Aws::String &&value)
const Aws::String & GetNextToken() const
void SetCluster(const Aws::String &value)
void SetStartedBy(Aws::String &&value)
void SetDesiredStatus(DesiredStatus &&value)
ListTasksRequest & WithContainerInstance(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListTasksRequest & WithCluster(Aws::String &&value)
void SetStartedBy(const Aws::String &value)
void SetFamily(const Aws::String &value)
void SetNextToken(Aws::String &&value)
void SetFamily(Aws::String &&value)
void SetStartedBy(const char *value)
ListTasksRequest & WithNextToken(const Aws::String &value)
JSON (JavaScript Object Notation).
ListTasksRequest & WithServiceName(Aws::String &&value)
const Aws::String & GetCluster() const