AWS SDK for C++

AWS SDK for C++ Version 1.11.709

Loading...
Searching...
No Matches
ListPermissionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ram/RAMRequest.h>
9#include <aws/ram/RAM_EXPORTS.h>
10#include <aws/ram/model/PermissionTypeFilter.h>
11
12#include <utility>
13
14namespace Aws {
15namespace RAM {
16namespace Model {
17
21 public:
22 AWS_RAM_API ListPermissionsRequest() = 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 "ListPermissions"; }
29
30 AWS_RAM_API Aws::String SerializePayload() const override;
31
33
40 inline const Aws::String& GetResourceType() const { return m_resourceType; }
41 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
42 template <typename ResourceTypeT = Aws::String>
43 void SetResourceType(ResourceTypeT&& value) {
44 m_resourceTypeHasBeenSet = true;
45 m_resourceType = std::forward<ResourceTypeT>(value);
46 }
47 template <typename ResourceTypeT = Aws::String>
48 ListPermissionsRequest& WithResourceType(ResourceTypeT&& value) {
49 SetResourceType(std::forward<ResourceTypeT>(value));
50 return *this;
51 }
53
55
62 inline const Aws::String& GetNextToken() const { return m_nextToken; }
63 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
64 template <typename NextTokenT = Aws::String>
65 void SetNextToken(NextTokenT&& value) {
66 m_nextTokenHasBeenSet = true;
67 m_nextToken = std::forward<NextTokenT>(value);
68 }
69 template <typename NextTokenT = Aws::String>
71 SetNextToken(std::forward<NextTokenT>(value));
72 return *this;
73 }
75
77
88 inline int GetMaxResults() const { return m_maxResults; }
89 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
90 inline void SetMaxResults(int value) {
91 m_maxResultsHasBeenSet = true;
92 m_maxResults = value;
93 }
95 SetMaxResults(value);
96 return *this;
97 }
99
101
109 inline PermissionTypeFilter GetPermissionType() const { return m_permissionType; }
110 inline bool PermissionTypeHasBeenSet() const { return m_permissionTypeHasBeenSet; }
112 m_permissionTypeHasBeenSet = true;
113 m_permissionType = value;
114 }
116 SetPermissionType(value);
117 return *this;
118 }
120 private:
121 Aws::String m_resourceType;
122
123 Aws::String m_nextToken;
124
125 int m_maxResults{0};
126
128 bool m_resourceTypeHasBeenSet = false;
129 bool m_nextTokenHasBeenSet = false;
130 bool m_maxResultsHasBeenSet = false;
131 bool m_permissionTypeHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace RAM
136} // namespace Aws
virtual const char * GetServiceRequestName() const override
ListPermissionsRequest & WithMaxResults(int value)
ListPermissionsRequest & WithNextToken(NextTokenT &&value)
void SetPermissionType(PermissionTypeFilter value)
ListPermissionsRequest & WithPermissionType(PermissionTypeFilter value)
AWS_RAM_API ListPermissionsRequest()=default
ListPermissionsRequest & WithResourceType(ResourceTypeT &&value)
AWS_RAM_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String