AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListPermissionsRequest.h
1
6#pragma once
7#include <aws/ram/RAM_EXPORTS.h>
8#include <aws/ram/RAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ram/model/PermissionTypeFilter.h>
11#include <utility>
12
13namespace Aws
14{
15namespace RAM
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_RAM_API ListPermissionsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListPermissions"; }
32
33 AWS_RAM_API Aws::String SerializePayload() const override;
34
35
37
44 inline const Aws::String& GetResourceType() const { return m_resourceType; }
45 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
46 template<typename ResourceTypeT = Aws::String>
47 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
48 template<typename ResourceTypeT = Aws::String>
49 ListPermissionsRequest& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
51
53
60 inline const Aws::String& GetNextToken() const { return m_nextToken; }
61 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
62 template<typename NextTokenT = Aws::String>
63 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
64 template<typename NextTokenT = Aws::String>
65 ListPermissionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
67
69
80 inline int GetMaxResults() const { return m_maxResults; }
81 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
82 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
83 inline ListPermissionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
85
87
95 inline PermissionTypeFilter GetPermissionType() const { return m_permissionType; }
96 inline bool PermissionTypeHasBeenSet() const { return m_permissionTypeHasBeenSet; }
97 inline void SetPermissionType(PermissionTypeFilter value) { m_permissionTypeHasBeenSet = true; m_permissionType = value; }
100 private:
101
102 Aws::String m_resourceType;
103 bool m_resourceTypeHasBeenSet = false;
104
105 Aws::String m_nextToken;
106 bool m_nextTokenHasBeenSet = false;
107
108 int m_maxResults{0};
109 bool m_maxResultsHasBeenSet = false;
110
112 bool m_permissionTypeHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace RAM
117} // namespace Aws
PermissionTypeFilter GetPermissionType() const
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