AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
47 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
48 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
49 inline ListPermissionsRequest& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
50 inline ListPermissionsRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
51 inline ListPermissionsRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;}
53
55
62 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
63 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
64 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
65 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
66 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
67 inline ListPermissionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
68 inline ListPermissionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
69 inline ListPermissionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
71
73
84 inline int GetMaxResults() const{ return m_maxResults; }
85 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
86 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
87 inline ListPermissionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
89
91
99 inline const PermissionTypeFilter& GetPermissionType() const{ return m_permissionType; }
100 inline bool PermissionTypeHasBeenSet() const { return m_permissionTypeHasBeenSet; }
101 inline void SetPermissionType(const PermissionTypeFilter& value) { m_permissionTypeHasBeenSet = true; m_permissionType = value; }
102 inline void SetPermissionType(PermissionTypeFilter&& value) { m_permissionTypeHasBeenSet = true; m_permissionType = std::move(value); }
104 inline ListPermissionsRequest& WithPermissionType(PermissionTypeFilter&& value) { SetPermissionType(std::move(value)); return *this;}
106 private:
107
108 Aws::String m_resourceType;
109 bool m_resourceTypeHasBeenSet = false;
110
111 Aws::String m_nextToken;
112 bool m_nextTokenHasBeenSet = false;
113
114 int m_maxResults;
115 bool m_maxResultsHasBeenSet = false;
116
117 PermissionTypeFilter m_permissionType;
118 bool m_permissionTypeHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace RAM
123} // namespace Aws
void SetResourceType(const Aws::String &value)
void SetPermissionType(const PermissionTypeFilter &value)
ListPermissionsRequest & WithResourceType(const Aws::String &value)
void SetPermissionType(PermissionTypeFilter &&value)
virtual const char * GetServiceRequestName() const override
ListPermissionsRequest & WithPermissionType(PermissionTypeFilter &&value)
ListPermissionsRequest & WithNextToken(Aws::String &&value)
ListPermissionsRequest & WithMaxResults(int value)
ListPermissionsRequest & WithNextToken(const Aws::String &value)
ListPermissionsRequest & WithResourceType(Aws::String &&value)
AWS_RAM_API Aws::String SerializePayload() const override
ListPermissionsRequest & WithNextToken(const char *value)
ListPermissionsRequest & WithResourceType(const char *value)
void SetNextToken(const Aws::String &value)
ListPermissionsRequest & WithPermissionType(const PermissionTypeFilter &value)
const PermissionTypeFilter & GetPermissionType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String