AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PrincipalPermissions.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/DataLakePrincipal.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/model/Permission.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_GLUE_API PrincipalPermissions();
40
41
43
46 inline const DataLakePrincipal& GetPrincipal() const{ return m_principal; }
47 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
48 inline void SetPrincipal(const DataLakePrincipal& value) { m_principalHasBeenSet = true; m_principal = value; }
49 inline void SetPrincipal(DataLakePrincipal&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
50 inline PrincipalPermissions& WithPrincipal(const DataLakePrincipal& value) { SetPrincipal(value); return *this;}
51 inline PrincipalPermissions& WithPrincipal(DataLakePrincipal&& value) { SetPrincipal(std::move(value)); return *this;}
53
55
58 inline const Aws::Vector<Permission>& GetPermissions() const{ return m_permissions; }
59 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
60 inline void SetPermissions(const Aws::Vector<Permission>& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
61 inline void SetPermissions(Aws::Vector<Permission>&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
62 inline PrincipalPermissions& WithPermissions(const Aws::Vector<Permission>& value) { SetPermissions(value); return *this;}
63 inline PrincipalPermissions& WithPermissions(Aws::Vector<Permission>&& value) { SetPermissions(std::move(value)); return *this;}
64 inline PrincipalPermissions& AddPermissions(const Permission& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
65 inline PrincipalPermissions& AddPermissions(Permission&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; }
67 private:
68
69 DataLakePrincipal m_principal;
70 bool m_principalHasBeenSet = false;
71
72 Aws::Vector<Permission> m_permissions;
73 bool m_permissionsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Glue
78} // namespace Aws
PrincipalPermissions & WithPermissions(const Aws::Vector< Permission > &value)
void SetPermissions(Aws::Vector< Permission > &&value)
AWS_GLUE_API PrincipalPermissions(Aws::Utils::Json::JsonView jsonValue)
void SetPrincipal(const DataLakePrincipal &value)
void SetPermissions(const Aws::Vector< Permission > &value)
PrincipalPermissions & WithPermissions(Aws::Vector< Permission > &&value)
AWS_GLUE_API PrincipalPermissions & operator=(Aws::Utils::Json::JsonView jsonValue)
PrincipalPermissions & WithPrincipal(DataLakePrincipal &&value)
PrincipalPermissions & AddPermissions(Permission &&value)
PrincipalPermissions & AddPermissions(const Permission &value)
PrincipalPermissions & WithPrincipal(const DataLakePrincipal &value)
void SetPrincipal(DataLakePrincipal &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const DataLakePrincipal & GetPrincipal() const
const Aws::Vector< Permission > & GetPermissions() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue