AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchPermissionsRequestEntry.h
1
6#pragma once
7#include <aws/lakeformation/LakeFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lakeformation/model/DataLakePrincipal.h>
10#include <aws/lakeformation/model/Resource.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lakeformation/model/Permission.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace LakeFormation
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_LAKEFORMATION_API BatchPermissionsRequestEntry();
42 AWS_LAKEFORMATION_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const{ return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline BatchPermissionsRequestEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline BatchPermissionsRequestEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline BatchPermissionsRequestEntry& WithId(const char* value) { SetId(value); return *this;}
58
60
63 inline const DataLakePrincipal& GetPrincipal() const{ return m_principal; }
64 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
65 inline void SetPrincipal(const DataLakePrincipal& value) { m_principalHasBeenSet = true; m_principal = value; }
66 inline void SetPrincipal(DataLakePrincipal&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
67 inline BatchPermissionsRequestEntry& WithPrincipal(const DataLakePrincipal& value) { SetPrincipal(value); return *this;}
68 inline BatchPermissionsRequestEntry& WithPrincipal(DataLakePrincipal&& value) { SetPrincipal(std::move(value)); return *this;}
70
72
75 inline const Resource& GetResource() const{ return m_resource; }
76 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
77 inline void SetResource(const Resource& value) { m_resourceHasBeenSet = true; m_resource = value; }
78 inline void SetResource(Resource&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
79 inline BatchPermissionsRequestEntry& WithResource(const Resource& value) { SetResource(value); return *this;}
80 inline BatchPermissionsRequestEntry& WithResource(Resource&& value) { SetResource(std::move(value)); return *this;}
82
84
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 BatchPermissionsRequestEntry& WithPermissions(Aws::Vector<Permission>&& value) { SetPermissions(std::move(value)); return *this;}
93 inline BatchPermissionsRequestEntry& AddPermissions(const Permission& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
94 inline BatchPermissionsRequestEntry& AddPermissions(Permission&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; }
96
98
101 inline const Aws::Vector<Permission>& GetPermissionsWithGrantOption() const{ return m_permissionsWithGrantOption; }
102 inline bool PermissionsWithGrantOptionHasBeenSet() const { return m_permissionsWithGrantOptionHasBeenSet; }
103 inline void SetPermissionsWithGrantOption(const Aws::Vector<Permission>& value) { m_permissionsWithGrantOptionHasBeenSet = true; m_permissionsWithGrantOption = value; }
104 inline void SetPermissionsWithGrantOption(Aws::Vector<Permission>&& value) { m_permissionsWithGrantOptionHasBeenSet = true; m_permissionsWithGrantOption = std::move(value); }
107 inline BatchPermissionsRequestEntry& AddPermissionsWithGrantOption(const Permission& value) { m_permissionsWithGrantOptionHasBeenSet = true; m_permissionsWithGrantOption.push_back(value); return *this; }
108 inline BatchPermissionsRequestEntry& AddPermissionsWithGrantOption(Permission&& value) { m_permissionsWithGrantOptionHasBeenSet = true; m_permissionsWithGrantOption.push_back(std::move(value)); return *this; }
110 private:
111
112 Aws::String m_id;
113 bool m_idHasBeenSet = false;
114
115 DataLakePrincipal m_principal;
116 bool m_principalHasBeenSet = false;
117
118 Resource m_resource;
119 bool m_resourceHasBeenSet = false;
120
121 Aws::Vector<Permission> m_permissions;
122 bool m_permissionsHasBeenSet = false;
123
124 Aws::Vector<Permission> m_permissionsWithGrantOption;
125 bool m_permissionsWithGrantOptionHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace LakeFormation
130} // namespace Aws
bool PermissionsHasBeenSet() const
BatchPermissionsRequestEntry & WithPermissions(const Aws::Vector< Permission > &value)
BatchPermissionsRequestEntry & AddPermissionsWithGrantOption(Permission &&value)
BatchPermissionsRequestEntry & WithPermissions(Aws::Vector< Permission > &&value)
AWS_LAKEFORMATION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetId(const Aws::String &value)
BatchPermissionsRequestEntry & WithResource(const Resource &value)
BatchPermissionsRequestEntry & WithResource(Resource &&value)
const Aws::String & GetId() const
BatchPermissionsRequestEntry & WithId(Aws::String &&value)
void SetResource(const Resource &value)
const Resource & GetResource() const
const DataLakePrincipal & GetPrincipal() const
AWS_LAKEFORMATION_API BatchPermissionsRequestEntry(Aws::Utils::Json::JsonView jsonValue)
void SetResource(Resource &&value)
const Aws::Vector< Permission > & GetPermissions() const
BatchPermissionsRequestEntry & WithPermissionsWithGrantOption(const Aws::Vector< Permission > &value)
BatchPermissionsRequestEntry & WithId(const Aws::String &value)
BatchPermissionsRequestEntry & WithPermissionsWithGrantOption(Aws::Vector< Permission > &&value)
AWS_LAKEFORMATION_API BatchPermissionsRequestEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool IdHasBeenSet() const
void SetPermissions(Aws::Vector< Permission > &&value)
void SetPermissions(const Aws::Vector< Permission > &value)
BatchPermissionsRequestEntry & WithPrincipal(const DataLakePrincipal &value)
BatchPermissionsRequestEntry & AddPermissions(Permission &&value)
AWS_LAKEFORMATION_API BatchPermissionsRequestEntry()
const Aws::Vector< Permission > & GetPermissionsWithGrantOption() const
BatchPermissionsRequestEntry & AddPermissions(const Permission &value)
bool PrincipalHasBeenSet() const
void SetPermissionsWithGrantOption(Aws::Vector< Permission > &&value)
BatchPermissionsRequestEntry & WithId(const char *value)
void SetPrincipal(const DataLakePrincipal &value)
void SetPrincipal(DataLakePrincipal &&value)
void SetId(const char *value)
void SetPermissionsWithGrantOption(const Aws::Vector< Permission > &value)
void SetId(Aws::String &&value)
bool ResourceHasBeenSet() const
BatchPermissionsRequestEntry & WithPrincipal(DataLakePrincipal &&value)
BatchPermissionsRequestEntry & AddPermissionsWithGrantOption(const Permission &value)
bool PermissionsWithGrantOptionHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue