AWS SDK for C++  1.8.71
AWS SDK for C++
ListStacksRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CloudFormation
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ListStacks"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
48  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
49 
54  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
55 
60  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
61 
66  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
67 
72  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
73 
78  inline ListStacksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
79 
84  inline ListStacksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
85 
90  inline ListStacksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
91 
92 
99  inline const Aws::Vector<StackStatus>& GetStackStatusFilter() const{ return m_stackStatusFilter; }
100 
107  inline bool StackStatusFilterHasBeenSet() const { return m_stackStatusFilterHasBeenSet; }
108 
115  inline void SetStackStatusFilter(const Aws::Vector<StackStatus>& value) { m_stackStatusFilterHasBeenSet = true; m_stackStatusFilter = value; }
116 
123  inline void SetStackStatusFilter(Aws::Vector<StackStatus>&& value) { m_stackStatusFilterHasBeenSet = true; m_stackStatusFilter = std::move(value); }
124 
131  inline ListStacksRequest& WithStackStatusFilter(const Aws::Vector<StackStatus>& value) { SetStackStatusFilter(value); return *this;}
132 
139  inline ListStacksRequest& WithStackStatusFilter(Aws::Vector<StackStatus>&& value) { SetStackStatusFilter(std::move(value)); return *this;}
140 
147  inline ListStacksRequest& AddStackStatusFilter(const StackStatus& value) { m_stackStatusFilterHasBeenSet = true; m_stackStatusFilter.push_back(value); return *this; }
148 
155  inline ListStacksRequest& AddStackStatusFilter(StackStatus&& value) { m_stackStatusFilterHasBeenSet = true; m_stackStatusFilter.push_back(std::move(value)); return *this; }
156 
157  private:
158 
159  Aws::String m_nextToken;
160  bool m_nextTokenHasBeenSet;
161 
162  Aws::Vector<StackStatus> m_stackStatusFilter;
163  bool m_stackStatusFilterHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace CloudFormation
168 } // 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:17
virtual const char * GetServiceRequestName() const override
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
ListStacksRequest & WithStackStatusFilter(const Aws::Vector< StackStatus > &value)