AWS SDK for C++  0.14.3
AWS SDK for C++
ListTaskDefinitionFamiliesRequest.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 
44  inline const Aws::String& GetFamilyPrefix() const{ return m_familyPrefix; }
45 
52  inline void SetFamilyPrefix(const Aws::String& value) { m_familyPrefixHasBeenSet = true; m_familyPrefix = value; }
53 
60  inline void SetFamilyPrefix(Aws::String&& value) { m_familyPrefixHasBeenSet = true; m_familyPrefix = value; }
61 
68  inline void SetFamilyPrefix(const char* value) { m_familyPrefixHasBeenSet = true; m_familyPrefix.assign(value); }
69 
76  inline ListTaskDefinitionFamiliesRequest& WithFamilyPrefix(const Aws::String& value) { SetFamilyPrefix(value); return *this;}
77 
84  inline ListTaskDefinitionFamiliesRequest& WithFamilyPrefix(Aws::String&& value) { SetFamilyPrefix(value); return *this;}
85 
92  inline ListTaskDefinitionFamiliesRequest& WithFamilyPrefix(const char* value) { SetFamilyPrefix(value); return *this;}
93 
105  inline const TaskDefinitionFamilyStatus& GetStatus() const{ return m_status; }
106 
118  inline void SetStatus(const TaskDefinitionFamilyStatus& value) { m_statusHasBeenSet = true; m_status = value; }
119 
131  inline void SetStatus(TaskDefinitionFamilyStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
132 
144  inline ListTaskDefinitionFamiliesRequest& WithStatus(const TaskDefinitionFamilyStatus& value) { SetStatus(value); return *this;}
145 
157  inline ListTaskDefinitionFamiliesRequest& WithStatus(TaskDefinitionFamilyStatus&& value) { SetStatus(value); return *this;}
158 
169  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
170 
181  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
182 
193  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
194 
205  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
206 
217  inline ListTaskDefinitionFamiliesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
218 
229  inline ListTaskDefinitionFamiliesRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
230 
241  inline ListTaskDefinitionFamiliesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
242 
254  inline int GetMaxResults() const{ return m_maxResults; }
255 
267  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
268 
280  inline ListTaskDefinitionFamiliesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
281 
282  private:
283  Aws::String m_familyPrefix;
284  bool m_familyPrefixHasBeenSet;
286  bool m_statusHasBeenSet;
287  Aws::String m_nextToken;
288  bool m_nextTokenHasBeenSet;
289  int m_maxResults;
290  bool m_maxResultsHasBeenSet;
291  };
292 
293 } // namespace Model
294 } // namespace ECS
295 } // namespace Aws
ListTaskDefinitionFamiliesRequest & WithStatus(TaskDefinitionFamilyStatus &&value)
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:37
ListTaskDefinitionFamiliesRequest & WithFamilyPrefix(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
ListTaskDefinitionFamiliesRequest & WithNextToken(const char *value)
ListTaskDefinitionFamiliesRequest & WithNextToken(const Aws::String &value)
ListTaskDefinitionFamiliesRequest & WithMaxResults(int value)
ListTaskDefinitionFamiliesRequest & WithFamilyPrefix(Aws::String &&value)
void SetStatus(const TaskDefinitionFamilyStatus &value)
ListTaskDefinitionFamiliesRequest & WithStatus(const TaskDefinitionFamilyStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListTaskDefinitionFamiliesRequest & WithFamilyPrefix(const char *value)
ListTaskDefinitionFamiliesRequest & WithNextToken(Aws::String &&value)
JSON (JavaScript Object Notation).