AWS SDK for C++  1.8.95
AWS SDK for C++
ListEnvironmentsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Cloud9
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ListEnvironments"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
45  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
46 
55  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
56 
65  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
66 
75  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
76 
85  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
86 
95  inline ListEnvironmentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
96 
105  inline ListEnvironmentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
106 
115  inline ListEnvironmentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
116 
117 
121  inline int GetMaxResults() const{ return m_maxResults; }
122 
126  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
127 
131  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
132 
136  inline ListEnvironmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
137 
138  private:
139 
140  Aws::String m_nextToken;
141  bool m_nextTokenHasBeenSet;
142 
143  int m_maxResults;
144  bool m_maxResultsHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace Cloud9
149 } // namespace Aws
virtual const char * GetServiceRequestName() const override
ListEnvironmentsRequest & WithMaxResults(int value)
ListEnvironmentsRequest & WithNextToken(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ListEnvironmentsRequest & WithNextToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CLOUD9_API
ListEnvironmentsRequest & WithNextToken(const Aws::String &value)