AWS SDK for C++  0.14.3
AWS SDK for C++
ListStacksRequest.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
21 
22 namespace Aws
23 {
24 namespace CloudFormation
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
42  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
43 
48  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
49 
54  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
55 
60  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
61 
66  inline ListStacksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
67 
72  inline ListStacksRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
73 
78  inline ListStacksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
79 
86  inline const Aws::Vector<StackStatus>& GetStackStatusFilter() const{ return m_stackStatusFilter; }
87 
94  inline void SetStackStatusFilter(const Aws::Vector<StackStatus>& value) { m_stackStatusFilterHasBeenSet = true; m_stackStatusFilter = value; }
95 
102  inline void SetStackStatusFilter(Aws::Vector<StackStatus>&& value) { m_stackStatusFilterHasBeenSet = true; m_stackStatusFilter = value; }
103 
110  inline ListStacksRequest& WithStackStatusFilter(const Aws::Vector<StackStatus>& value) { SetStackStatusFilter(value); return *this;}
111 
118  inline ListStacksRequest& WithStackStatusFilter(Aws::Vector<StackStatus>&& value) { SetStackStatusFilter(value); return *this;}
119 
126  inline ListStacksRequest& AddStackStatusFilter(const StackStatus& value) { m_stackStatusFilterHasBeenSet = true; m_stackStatusFilter.push_back(value); return *this; }
127 
134  inline ListStacksRequest& AddStackStatusFilter(StackStatus&& value) { m_stackStatusFilterHasBeenSet = true; m_stackStatusFilter.push_back(value); return *this; }
135 
136  private:
137  Aws::String m_nextToken;
138  bool m_nextTokenHasBeenSet;
139  Aws::Vector<StackStatus> m_stackStatusFilter;
140  bool m_stackStatusFilterHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace CloudFormation
145 } // namespace Aws
ListStacksRequest & AddStackStatusFilter(StackStatus &&value)
ListStacksRequest & AddStackStatusFilter(const StackStatus &value)
void SetStackStatusFilter(Aws::Vector< StackStatus > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ListStacksRequest & WithNextToken(Aws::String &&value)
ListStacksRequest & WithNextToken(const Aws::String &value)
void SetStackStatusFilter(const Aws::Vector< StackStatus > &value)
ListStacksRequest & WithStackStatusFilter(Aws::Vector< StackStatus > &&value)
void SetNextToken(const Aws::String &value)
ListStacksRequest & WithNextToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CLOUDFORMATION_API
const Aws::Vector< StackStatus > & GetStackStatusFilter() const
JSON (JavaScript Object Notation).
ListStacksRequest & WithStackStatusFilter(const Aws::Vector< StackStatus > &value)