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/lakeformation/LakeFormation_EXPORTS.h>
8#include <aws/lakeformation/LakeFormationRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lakeformation/model/DataLakePrincipal.h>
11#include <aws/lakeformation/model/DataLakeResourceType.h>
12#include <aws/lakeformation/model/Resource.h>
13#include <utility>
14
15namespace Aws
16{
17namespace LakeFormation
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LAKEFORMATION_API ListPermissionsRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListPermissions"; }
34
35 AWS_LAKEFORMATION_API Aws::String SerializePayload() const override;
36
37
39
45 inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
46 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
47 inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
48 inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
49 inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
50 inline ListPermissionsRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
51 inline ListPermissionsRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
52 inline ListPermissionsRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
54
56
59 inline const DataLakePrincipal& GetPrincipal() const{ return m_principal; }
60 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
61 inline void SetPrincipal(const DataLakePrincipal& value) { m_principalHasBeenSet = true; m_principal = value; }
62 inline void SetPrincipal(DataLakePrincipal&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
63 inline ListPermissionsRequest& WithPrincipal(const DataLakePrincipal& value) { SetPrincipal(value); return *this;}
64 inline ListPermissionsRequest& WithPrincipal(DataLakePrincipal&& value) { SetPrincipal(std::move(value)); return *this;}
66
68
71 inline const DataLakeResourceType& GetResourceType() const{ return m_resourceType; }
72 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
73 inline void SetResourceType(const DataLakeResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
74 inline void SetResourceType(DataLakeResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
75 inline ListPermissionsRequest& WithResourceType(const DataLakeResourceType& value) { SetResourceType(value); return *this;}
76 inline ListPermissionsRequest& WithResourceType(DataLakeResourceType&& value) { SetResourceType(std::move(value)); return *this;}
78
80
86 inline const Resource& GetResource() const{ return m_resource; }
87 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
88 inline void SetResource(const Resource& value) { m_resourceHasBeenSet = true; m_resource = value; }
89 inline void SetResource(Resource&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
90 inline ListPermissionsRequest& WithResource(const Resource& value) { SetResource(value); return *this;}
91 inline ListPermissionsRequest& WithResource(Resource&& value) { SetResource(std::move(value)); return *this;}
93
95
99 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
100 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
101 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
102 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
103 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
104 inline ListPermissionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
105 inline ListPermissionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
106 inline ListPermissionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
108
110
113 inline int GetMaxResults() const{ return m_maxResults; }
114 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
115 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
116 inline ListPermissionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
118
120
123 inline const Aws::String& GetIncludeRelated() const{ return m_includeRelated; }
124 inline bool IncludeRelatedHasBeenSet() const { return m_includeRelatedHasBeenSet; }
125 inline void SetIncludeRelated(const Aws::String& value) { m_includeRelatedHasBeenSet = true; m_includeRelated = value; }
126 inline void SetIncludeRelated(Aws::String&& value) { m_includeRelatedHasBeenSet = true; m_includeRelated = std::move(value); }
127 inline void SetIncludeRelated(const char* value) { m_includeRelatedHasBeenSet = true; m_includeRelated.assign(value); }
128 inline ListPermissionsRequest& WithIncludeRelated(const Aws::String& value) { SetIncludeRelated(value); return *this;}
129 inline ListPermissionsRequest& WithIncludeRelated(Aws::String&& value) { SetIncludeRelated(std::move(value)); return *this;}
130 inline ListPermissionsRequest& WithIncludeRelated(const char* value) { SetIncludeRelated(value); return *this;}
132 private:
133
134 Aws::String m_catalogId;
135 bool m_catalogIdHasBeenSet = false;
136
137 DataLakePrincipal m_principal;
138 bool m_principalHasBeenSet = false;
139
140 DataLakeResourceType m_resourceType;
141 bool m_resourceTypeHasBeenSet = false;
142
143 Resource m_resource;
144 bool m_resourceHasBeenSet = false;
145
146 Aws::String m_nextToken;
147 bool m_nextTokenHasBeenSet = false;
148
149 int m_maxResults;
150 bool m_maxResultsHasBeenSet = false;
151
152 Aws::String m_includeRelated;
153 bool m_includeRelatedHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace LakeFormation
158} // namespace Aws
ListPermissionsRequest & WithNextToken(const Aws::String &value)
ListPermissionsRequest & WithPrincipal(const DataLakePrincipal &value)
const DataLakeResourceType & GetResourceType() const
ListPermissionsRequest & WithCatalogId(const Aws::String &value)
ListPermissionsRequest & WithIncludeRelated(Aws::String &&value)
AWS_LAKEFORMATION_API Aws::String SerializePayload() const override
ListPermissionsRequest & WithResourceType(const DataLakeResourceType &value)
ListPermissionsRequest & WithResource(Resource &&value)
ListPermissionsRequest & WithCatalogId(const char *value)
ListPermissionsRequest & WithResourceType(DataLakeResourceType &&value)
ListPermissionsRequest & WithIncludeRelated(const Aws::String &value)
ListPermissionsRequest & WithNextToken(const char *value)
ListPermissionsRequest & WithIncludeRelated(const char *value)
ListPermissionsRequest & WithCatalogId(Aws::String &&value)
ListPermissionsRequest & WithNextToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetResourceType(const DataLakeResourceType &value)
void SetPrincipal(const DataLakePrincipal &value)
ListPermissionsRequest & WithResource(const Resource &value)
ListPermissionsRequest & WithPrincipal(DataLakePrincipal &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String