AWS SDK for C++  1.9.104
AWS SDK for C++
ListInstancesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SSOAdmin
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 "ListInstances"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline int GetMaxResults() const{ return m_maxResults; }
41 
45  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
46 
50  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
51 
55  inline ListInstancesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
56 
57 
62  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
63 
68  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
69 
74  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
75 
80  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
81 
86  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
87 
92  inline ListInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
93 
98  inline ListInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
99 
104  inline ListInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
105 
106  private:
107 
108  int m_maxResults;
109  bool m_maxResultsHasBeenSet;
110 
111  Aws::String m_nextToken;
112  bool m_nextTokenHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace SSOAdmin
117 } // namespace Aws
Aws::SSOAdmin::Model::ListInstancesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListInstancesRequest.h:80
Aws::SSOAdmin::Model::ListInstancesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListInstancesRequest.h:86
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SSOAdmin::Model::ListInstancesRequest::WithNextToken
ListInstancesRequest & WithNextToken(Aws::String &&value)
Definition: ListInstancesRequest.h:98
Aws::SSOAdmin::Model::ListInstancesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListInstancesRequest.h:40
AWS_SSOADMIN_API
#define AWS_SSOADMIN_API
Definition: SSOAdmin_EXPORTS.h:28
Aws::SSOAdmin::Model::ListInstancesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListInstancesRequest.h:45
Aws::SSOAdmin::Model::ListInstancesRequest::WithNextToken
ListInstancesRequest & WithNextToken(const Aws::String &value)
Definition: ListInstancesRequest.h:92
Aws::SSOAdmin::Model::ListInstancesRequest
Definition: ListInstancesRequest.h:22
Aws::SSOAdmin::Model::ListInstancesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListInstancesRequest.h:50
SSOAdmin_EXPORTS.h
Aws::SSOAdmin::Model::ListInstancesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListInstancesRequest.h:62
Aws::SSOAdmin::SSOAdminRequest
Definition: SSOAdminRequest.h:17
Aws::SSOAdmin::Model::ListInstancesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListInstancesRequest.h:68
Aws::SSOAdmin::Model::ListInstancesRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
SSOAdminRequest.h
Aws::SSOAdmin::Model::ListInstancesRequest::WithMaxResults
ListInstancesRequest & WithMaxResults(int value)
Definition: ListInstancesRequest.h:55
Aws::SSOAdmin::Model::ListInstancesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::SSOAdmin::Model::ListInstancesRequest::ListInstancesRequest
ListInstancesRequest()
Aws::SSOAdmin::Model::ListInstancesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListInstancesRequest.h:30
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSOAdmin::Model::ListInstancesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListInstancesRequest.h:74
Aws::SSOAdmin::Model::ListInstancesRequest::WithNextToken
ListInstancesRequest & WithNextToken(const char *value)
Definition: ListInstancesRequest.h:104