AWS SDK for C++  1.9.123
AWS SDK for C++
ListServicesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace AppRunner
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 "ListServices"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
43  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
44 
51  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
52 
59  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
60 
67  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
68 
75  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
76 
83  inline ListServicesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
84 
91  inline ListServicesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
92 
99  inline ListServicesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
100 
101 
108  inline int GetMaxResults() const{ return m_maxResults; }
109 
116  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
117 
124  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
125 
132  inline ListServicesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
133 
134  private:
135 
136  Aws::String m_nextToken;
137  bool m_nextTokenHasBeenSet;
138 
139  int m_maxResults;
140  bool m_maxResultsHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace AppRunner
145 } // namespace Aws
Aws::AppRunner::Model::ListServicesRequest::WithMaxResults
ListServicesRequest & WithMaxResults(int value)
Definition: ListServicesRequest.h:132
Aws::AppRunner::Model::ListServicesRequest::WithNextToken
ListServicesRequest & WithNextToken(const char *value)
Definition: ListServicesRequest.h:99
Aws::AppRunner::Model::ListServicesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListServicesRequest.h:59
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::AppRunner::Model::ListServicesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::AppRunner::Model::ListServicesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppRunner::AppRunnerRequest
Definition: AppRunnerRequest.h:17
Aws::AppRunner::Model::ListServicesRequest::WithNextToken
ListServicesRequest & WithNextToken(Aws::String &&value)
Definition: ListServicesRequest.h:91
AppRunner_EXPORTS.h
AWSString.h
Aws::AppRunner::Model::ListServicesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListServicesRequest.h:43
Aws::AppRunner::Model::ListServicesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListServicesRequest.h:116
Aws::AppRunner::Model::ListServicesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListServicesRequest.h:108
Aws::AppRunner::Model::ListServicesRequest::ListServicesRequest
ListServicesRequest()
Aws::AppRunner::Model::ListServicesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListServicesRequest.h:30
Aws::AppRunner::Model::ListServicesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListServicesRequest.h:124
Aws::AppRunner::Model::ListServicesRequest
Definition: ListServicesRequest.h:22
Aws
Definition: AccessManagementClient.h:15
Aws::AppRunner::Model::ListServicesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListServicesRequest.h:51
Aws::AppRunner::Model::ListServicesRequest::WithNextToken
ListServicesRequest & WithNextToken(const Aws::String &value)
Definition: ListServicesRequest.h:83
Aws::AppRunner::Model::ListServicesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListServicesRequest.h:67
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppRunner::Model::ListServicesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListServicesRequest.h:75
AWS_APPRUNNER_API
#define AWS_APPRUNNER_API
Definition: AppRunner_EXPORTS.h:28
AppRunnerRequest.h