AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
ListInstancesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sso-admin/SSOAdminRequest.h>
9#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
10#include <aws/sso-admin/model/RegionScope.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SSOAdmin {
16namespace Model {
17
21 public:
22 AWS_SSOADMIN_API ListInstancesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListInstances"; }
29
30 AWS_SSOADMIN_API Aws::String SerializePayload() const override;
31
33
35
38 inline int GetMaxResults() const { return m_maxResults; }
39 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
40 inline void SetMaxResults(int value) {
41 m_maxResultsHasBeenSet = true;
42 m_maxResults = value;
43 }
45 SetMaxResults(value);
46 return *this;
47 }
49
51
55 inline const Aws::String& GetNextToken() const { return m_nextToken; }
56 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
57 template <typename NextTokenT = Aws::String>
58 void SetNextToken(NextTokenT&& value) {
59 m_nextTokenHasBeenSet = true;
60 m_nextToken = std::forward<NextTokenT>(value);
61 }
62 template <typename NextTokenT = Aws::String>
63 ListInstancesRequest& WithNextToken(NextTokenT&& value) {
64 SetNextToken(std::forward<NextTokenT>(value));
65 return *this;
66 }
68
70
78 inline RegionScope GetRegionScope() const { return m_regionScope; }
79 inline bool RegionScopeHasBeenSet() const { return m_regionScopeHasBeenSet; }
80 inline void SetRegionScope(RegionScope value) {
81 m_regionScopeHasBeenSet = true;
82 m_regionScope = value;
83 }
85 SetRegionScope(value);
86 return *this;
87 }
89 private:
90 int m_maxResults{0};
91
92 Aws::String m_nextToken;
93
94 RegionScope m_regionScope{RegionScope::NOT_SET};
95 bool m_maxResultsHasBeenSet = false;
96 bool m_nextTokenHasBeenSet = false;
97 bool m_regionScopeHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace SSOAdmin
102} // namespace Aws
AWS_SSOADMIN_API Aws::String SerializePayload() const override
AWS_SSOADMIN_API ListInstancesRequest()=default
ListInstancesRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
ListInstancesRequest & WithRegionScope(RegionScope value)
AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListInstancesRequest & WithMaxResults(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String