AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename CatalogIdT = Aws::String>
48 void SetCatalogId(CatalogIdT&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::forward<CatalogIdT>(value); }
49 template<typename CatalogIdT = Aws::String>
50 ListPermissionsRequest& WithCatalogId(CatalogIdT&& value) { SetCatalogId(std::forward<CatalogIdT>(value)); return *this;}
52
54
57 inline const DataLakePrincipal& GetPrincipal() const { return m_principal; }
58 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
59 template<typename PrincipalT = DataLakePrincipal>
60 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet = true; m_principal = std::forward<PrincipalT>(value); }
61 template<typename PrincipalT = DataLakePrincipal>
62 ListPermissionsRequest& WithPrincipal(PrincipalT&& value) { SetPrincipal(std::forward<PrincipalT>(value)); return *this;}
64
66
69 inline DataLakeResourceType GetResourceType() const { return m_resourceType; }
70 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
71 inline void SetResourceType(DataLakeResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
74
76
82 inline const Resource& GetResource() const { return m_resource; }
83 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
84 template<typename ResourceT = Resource>
85 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
86 template<typename ResourceT = Resource>
87 ListPermissionsRequest& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
89
91
95 inline const Aws::String& GetNextToken() const { return m_nextToken; }
96 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
97 template<typename NextTokenT = Aws::String>
98 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
99 template<typename NextTokenT = Aws::String>
100 ListPermissionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
102
104
107 inline int GetMaxResults() const { return m_maxResults; }
108 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
109 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
110 inline ListPermissionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
112
114
117 inline const Aws::String& GetIncludeRelated() const { return m_includeRelated; }
118 inline bool IncludeRelatedHasBeenSet() const { return m_includeRelatedHasBeenSet; }
119 template<typename IncludeRelatedT = Aws::String>
120 void SetIncludeRelated(IncludeRelatedT&& value) { m_includeRelatedHasBeenSet = true; m_includeRelated = std::forward<IncludeRelatedT>(value); }
121 template<typename IncludeRelatedT = Aws::String>
122 ListPermissionsRequest& WithIncludeRelated(IncludeRelatedT&& value) { SetIncludeRelated(std::forward<IncludeRelatedT>(value)); return *this;}
124 private:
125
126 Aws::String m_catalogId;
127 bool m_catalogIdHasBeenSet = false;
128
129 DataLakePrincipal m_principal;
130 bool m_principalHasBeenSet = false;
131
133 bool m_resourceTypeHasBeenSet = false;
134
135 Resource m_resource;
136 bool m_resourceHasBeenSet = false;
137
138 Aws::String m_nextToken;
139 bool m_nextTokenHasBeenSet = false;
140
141 int m_maxResults{0};
142 bool m_maxResultsHasBeenSet = false;
143
144 Aws::String m_includeRelated;
145 bool m_includeRelatedHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace LakeFormation
150} // namespace Aws
ListPermissionsRequest & WithPrincipal(PrincipalT &&value)
AWS_LAKEFORMATION_API Aws::String SerializePayload() const override
ListPermissionsRequest & WithNextToken(NextTokenT &&value)
ListPermissionsRequest & WithCatalogId(CatalogIdT &&value)
ListPermissionsRequest & WithIncludeRelated(IncludeRelatedT &&value)
ListPermissionsRequest & WithResourceType(DataLakeResourceType value)
virtual const char * GetServiceRequestName() const override
ListPermissionsRequest & WithResource(ResourceT &&value)
AWS_LAKEFORMATION_API ListPermissionsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String