AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RevokePermissionsRequest.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/Resource.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lakeformation/model/Permission.h>
14#include <utility>
15
16namespace Aws
17{
18namespace LakeFormation
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_LAKEFORMATION_API RevokePermissionsRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "RevokePermissions"; }
35
36 AWS_LAKEFORMATION_API Aws::String SerializePayload() const override;
37
38
40
46 inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
47 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
48 inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
49 inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
50 inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
51 inline RevokePermissionsRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
52 inline RevokePermissionsRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
53 inline RevokePermissionsRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
55
57
60 inline const DataLakePrincipal& GetPrincipal() const{ return m_principal; }
61 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
62 inline void SetPrincipal(const DataLakePrincipal& value) { m_principalHasBeenSet = true; m_principal = value; }
63 inline void SetPrincipal(DataLakePrincipal&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
64 inline RevokePermissionsRequest& WithPrincipal(const DataLakePrincipal& value) { SetPrincipal(value); return *this;}
65 inline RevokePermissionsRequest& WithPrincipal(DataLakePrincipal&& value) { SetPrincipal(std::move(value)); return *this;}
67
69
72 inline const Resource& GetResource() const{ return m_resource; }
73 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
74 inline void SetResource(const Resource& value) { m_resourceHasBeenSet = true; m_resource = value; }
75 inline void SetResource(Resource&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
76 inline RevokePermissionsRequest& WithResource(const Resource& value) { SetResource(value); return *this;}
77 inline RevokePermissionsRequest& WithResource(Resource&& value) { SetResource(std::move(value)); return *this;}
79
81
87 inline const Aws::Vector<Permission>& GetPermissions() const{ return m_permissions; }
88 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
89 inline void SetPermissions(const Aws::Vector<Permission>& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
90 inline void SetPermissions(Aws::Vector<Permission>&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
92 inline RevokePermissionsRequest& WithPermissions(Aws::Vector<Permission>&& value) { SetPermissions(std::move(value)); return *this;}
93 inline RevokePermissionsRequest& AddPermissions(const Permission& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
94 inline RevokePermissionsRequest& AddPermissions(Permission&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; }
96
98
102 inline const Aws::Vector<Permission>& GetPermissionsWithGrantOption() const{ return m_permissionsWithGrantOption; }
103 inline bool PermissionsWithGrantOptionHasBeenSet() const { return m_permissionsWithGrantOptionHasBeenSet; }
104 inline void SetPermissionsWithGrantOption(const Aws::Vector<Permission>& value) { m_permissionsWithGrantOptionHasBeenSet = true; m_permissionsWithGrantOption = value; }
105 inline void SetPermissionsWithGrantOption(Aws::Vector<Permission>&& value) { m_permissionsWithGrantOptionHasBeenSet = true; m_permissionsWithGrantOption = std::move(value); }
108 inline RevokePermissionsRequest& AddPermissionsWithGrantOption(const Permission& value) { m_permissionsWithGrantOptionHasBeenSet = true; m_permissionsWithGrantOption.push_back(value); return *this; }
109 inline RevokePermissionsRequest& AddPermissionsWithGrantOption(Permission&& value) { m_permissionsWithGrantOptionHasBeenSet = true; m_permissionsWithGrantOption.push_back(std::move(value)); return *this; }
111 private:
112
113 Aws::String m_catalogId;
114 bool m_catalogIdHasBeenSet = false;
115
116 DataLakePrincipal m_principal;
117 bool m_principalHasBeenSet = false;
118
119 Resource m_resource;
120 bool m_resourceHasBeenSet = false;
121
122 Aws::Vector<Permission> m_permissions;
123 bool m_permissionsHasBeenSet = false;
124
125 Aws::Vector<Permission> m_permissionsWithGrantOption;
126 bool m_permissionsWithGrantOptionHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace LakeFormation
131} // namespace Aws
RevokePermissionsRequest & WithCatalogId(Aws::String &&value)
RevokePermissionsRequest & WithPermissionsWithGrantOption(const Aws::Vector< Permission > &value)
RevokePermissionsRequest & WithResource(Resource &&value)
void SetPermissions(Aws::Vector< Permission > &&value)
RevokePermissionsRequest & WithPrincipal(DataLakePrincipal &&value)
RevokePermissionsRequest & AddPermissionsWithGrantOption(Permission &&value)
RevokePermissionsRequest & WithPermissionsWithGrantOption(Aws::Vector< Permission > &&value)
RevokePermissionsRequest & WithCatalogId(const char *value)
void SetPermissionsWithGrantOption(const Aws::Vector< Permission > &value)
AWS_LAKEFORMATION_API Aws::String SerializePayload() const override
RevokePermissionsRequest & WithPermissions(const Aws::Vector< Permission > &value)
RevokePermissionsRequest & WithPrincipal(const DataLakePrincipal &value)
void SetPermissionsWithGrantOption(Aws::Vector< Permission > &&value)
RevokePermissionsRequest & WithResource(const Resource &value)
RevokePermissionsRequest & AddPermissionsWithGrantOption(const Permission &value)
const Aws::Vector< Permission > & GetPermissions() const
RevokePermissionsRequest & AddPermissions(const Permission &value)
RevokePermissionsRequest & WithCatalogId(const Aws::String &value)
RevokePermissionsRequest & AddPermissions(Permission &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Permission > & GetPermissionsWithGrantOption() const
RevokePermissionsRequest & WithPermissions(Aws::Vector< Permission > &&value)
void SetPermissions(const Aws::Vector< Permission > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector