1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/cloud9/Cloud9_EXPORTS.h>
8 #include <aws/cloud9/Cloud9Request.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Cloud9
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_CLOUD9_API ListEnvironmentsRequest : public Cloud9Request
22   {
23   public:
24     ListEnvironmentsRequest();
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.
GetServiceRequestName()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 
37     /**
38      * <p>During a previous call, if there are more than 25 items in the list, only the
39      * first 25 items are returned, along with a unique string called a <i>next
40      * token</i>. To get the next batch of items in the list, call this operation
41      * again, adding the next token to the call. To get all of the items in the list,
42      * keep calling this operation with each subsequent next token that is returned,
43      * until no more next tokens are returned.</p>
44      */
GetNextToken()45     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
46 
47     /**
48      * <p>During a previous call, if there are more than 25 items in the list, only the
49      * first 25 items are returned, along with a unique string called a <i>next
50      * token</i>. To get the next batch of items in the list, call this operation
51      * again, adding the next token to the call. To get all of the items in the list,
52      * keep calling this operation with each subsequent next token that is returned,
53      * until no more next tokens are returned.</p>
54      */
NextTokenHasBeenSet()55     inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
56 
57     /**
58      * <p>During a previous call, if there are more than 25 items in the list, only the
59      * first 25 items are returned, along with a unique string called a <i>next
60      * token</i>. To get the next batch of items in the list, call this operation
61      * again, adding the next token to the call. To get all of the items in the list,
62      * keep calling this operation with each subsequent next token that is returned,
63      * until no more next tokens are returned.</p>
64      */
SetNextToken(const Aws::String & value)65     inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
66 
67     /**
68      * <p>During a previous call, if there are more than 25 items in the list, only the
69      * first 25 items are returned, along with a unique string called a <i>next
70      * token</i>. To get the next batch of items in the list, call this operation
71      * again, adding the next token to the call. To get all of the items in the list,
72      * keep calling this operation with each subsequent next token that is returned,
73      * until no more next tokens are returned.</p>
74      */
SetNextToken(Aws::String && value)75     inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
76 
77     /**
78      * <p>During a previous call, if there are more than 25 items in the list, only the
79      * first 25 items are returned, along with a unique string called a <i>next
80      * token</i>. To get the next batch of items in the list, call this operation
81      * again, adding the next token to the call. To get all of the items in the list,
82      * keep calling this operation with each subsequent next token that is returned,
83      * until no more next tokens are returned.</p>
84      */
SetNextToken(const char * value)85     inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
86 
87     /**
88      * <p>During a previous call, if there are more than 25 items in the list, only the
89      * first 25 items are returned, along with a unique string called a <i>next
90      * token</i>. To get the next batch of items in the list, call this operation
91      * again, adding the next token to the call. To get all of the items in the list,
92      * keep calling this operation with each subsequent next token that is returned,
93      * until no more next tokens are returned.</p>
94      */
WithNextToken(const Aws::String & value)95     inline ListEnvironmentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
96 
97     /**
98      * <p>During a previous call, if there are more than 25 items in the list, only the
99      * first 25 items are returned, along with a unique string called a <i>next
100      * token</i>. To get the next batch of items in the list, call this operation
101      * again, adding the next token to the call. To get all of the items in the list,
102      * keep calling this operation with each subsequent next token that is returned,
103      * until no more next tokens are returned.</p>
104      */
WithNextToken(Aws::String && value)105     inline ListEnvironmentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
106 
107     /**
108      * <p>During a previous call, if there are more than 25 items in the list, only the
109      * first 25 items are returned, along with a unique string called a <i>next
110      * token</i>. To get the next batch of items in the list, call this operation
111      * again, adding the next token to the call. To get all of the items in the list,
112      * keep calling this operation with each subsequent next token that is returned,
113      * until no more next tokens are returned.</p>
114      */
WithNextToken(const char * value)115     inline ListEnvironmentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
116 
117 
118     /**
119      * <p>The maximum number of environments to get identifiers for.</p>
120      */
GetMaxResults()121     inline int GetMaxResults() const{ return m_maxResults; }
122 
123     /**
124      * <p>The maximum number of environments to get identifiers for.</p>
125      */
MaxResultsHasBeenSet()126     inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
127 
128     /**
129      * <p>The maximum number of environments to get identifiers for.</p>
130      */
SetMaxResults(int value)131     inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
132 
133     /**
134      * <p>The maximum number of environments to get identifiers for.</p>
135      */
WithMaxResults(int value)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
150