AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ListGroupsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iam/IAMRequest.h>
9#include <aws/iam/IAM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace IAM {
15namespace Model {
16
20 public:
21 AWS_IAM_API ListGroupsRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ListGroups"; }
28
29 AWS_IAM_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
49 inline const Aws::String& GetPathPrefix() const { return m_pathPrefix; }
50 inline bool PathPrefixHasBeenSet() const { return m_pathPrefixHasBeenSet; }
51 template <typename PathPrefixT = Aws::String>
52 void SetPathPrefix(PathPrefixT&& value) {
53 m_pathPrefixHasBeenSet = true;
54 m_pathPrefix = std::forward<PathPrefixT>(value);
55 }
56 template <typename PathPrefixT = Aws::String>
57 ListGroupsRequest& WithPathPrefix(PathPrefixT&& value) {
58 SetPathPrefix(std::forward<PathPrefixT>(value));
59 return *this;
60 }
62
64
70 inline const Aws::String& GetMarker() const { return m_marker; }
71 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
72 template <typename MarkerT = Aws::String>
73 void SetMarker(MarkerT&& value) {
74 m_markerHasBeenSet = true;
75 m_marker = std::forward<MarkerT>(value);
76 }
77 template <typename MarkerT = Aws::String>
78 ListGroupsRequest& WithMarker(MarkerT&& value) {
79 SetMarker(std::forward<MarkerT>(value));
80 return *this;
81 }
83
85
95 inline int GetMaxItems() const { return m_maxItems; }
96 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
97 inline void SetMaxItems(int value) {
98 m_maxItemsHasBeenSet = true;
99 m_maxItems = value;
100 }
101 inline ListGroupsRequest& WithMaxItems(int value) {
102 SetMaxItems(value);
103 return *this;
104 }
106 private:
107 Aws::String m_pathPrefix;
108
109 Aws::String m_marker;
110
111 int m_maxItems{0};
112 bool m_pathPrefixHasBeenSet = false;
113 bool m_markerHasBeenSet = false;
114 bool m_maxItemsHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace IAM
119} // namespace Aws
ListGroupsRequest & WithMarker(MarkerT &&value)
AWS_IAM_API ListGroupsRequest()=default
void SetPathPrefix(PathPrefixT &&value)
AWS_IAM_API Aws::String SerializePayload() const override
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::String & GetMarker() const
ListGroupsRequest & WithPathPrefix(PathPrefixT &&value)
const Aws::String & GetPathPrefix() const
virtual const char * GetServiceRequestName() const override
ListGroupsRequest & WithMaxItems(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String