AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LakeFormationDataPermissionAsset.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/dataexchange/model/LakeFormationDataPermissionDetails.h>
9#include <aws/dataexchange/model/LakeFormationDataPermissionType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/dataexchange/model/LFPermission.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 DataExchange
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_DATAEXCHANGE_API LakeFormationDataPermissionAsset();
41 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const LakeFormationDataPermissionDetails& GetLakeFormationDataPermissionDetails() const{ return m_lakeFormationDataPermissionDetails; }
49 inline bool LakeFormationDataPermissionDetailsHasBeenSet() const { return m_lakeFormationDataPermissionDetailsHasBeenSet; }
50 inline void SetLakeFormationDataPermissionDetails(const LakeFormationDataPermissionDetails& value) { m_lakeFormationDataPermissionDetailsHasBeenSet = true; m_lakeFormationDataPermissionDetails = value; }
51 inline void SetLakeFormationDataPermissionDetails(LakeFormationDataPermissionDetails&& value) { m_lakeFormationDataPermissionDetailsHasBeenSet = true; m_lakeFormationDataPermissionDetails = std::move(value); }
55
57
60 inline const LakeFormationDataPermissionType& GetLakeFormationDataPermissionType() const{ return m_lakeFormationDataPermissionType; }
61 inline bool LakeFormationDataPermissionTypeHasBeenSet() const { return m_lakeFormationDataPermissionTypeHasBeenSet; }
62 inline void SetLakeFormationDataPermissionType(const LakeFormationDataPermissionType& value) { m_lakeFormationDataPermissionTypeHasBeenSet = true; m_lakeFormationDataPermissionType = value; }
63 inline void SetLakeFormationDataPermissionType(LakeFormationDataPermissionType&& value) { m_lakeFormationDataPermissionTypeHasBeenSet = true; m_lakeFormationDataPermissionType = std::move(value); }
67
69
72 inline const Aws::Vector<LFPermission>& GetPermissions() const{ return m_permissions; }
73 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
74 inline void SetPermissions(const Aws::Vector<LFPermission>& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
75 inline void SetPermissions(Aws::Vector<LFPermission>&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
78 inline LakeFormationDataPermissionAsset& AddPermissions(const LFPermission& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
79 inline LakeFormationDataPermissionAsset& AddPermissions(LFPermission&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; }
81
83
87 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
88 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
89 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
90 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
91 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
92 inline LakeFormationDataPermissionAsset& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
93 inline LakeFormationDataPermissionAsset& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
94 inline LakeFormationDataPermissionAsset& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
96 private:
97
98 LakeFormationDataPermissionDetails m_lakeFormationDataPermissionDetails;
99 bool m_lakeFormationDataPermissionDetailsHasBeenSet = false;
100
101 LakeFormationDataPermissionType m_lakeFormationDataPermissionType;
102 bool m_lakeFormationDataPermissionTypeHasBeenSet = false;
103
104 Aws::Vector<LFPermission> m_permissions;
105 bool m_permissionsHasBeenSet = false;
106
107 Aws::String m_roleArn;
108 bool m_roleArnHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace DataExchange
113} // namespace Aws
void SetLakeFormationDataPermissionType(LakeFormationDataPermissionType &&value)
const LakeFormationDataPermissionDetails & GetLakeFormationDataPermissionDetails() const
void SetLakeFormationDataPermissionDetails(LakeFormationDataPermissionDetails &&value)
LakeFormationDataPermissionAsset & WithRoleArn(Aws::String &&value)
const LakeFormationDataPermissionType & GetLakeFormationDataPermissionType() const
AWS_DATAEXCHANGE_API LakeFormationDataPermissionAsset(Aws::Utils::Json::JsonView jsonValue)
void SetLakeFormationDataPermissionType(const LakeFormationDataPermissionType &value)
LakeFormationDataPermissionAsset & AddPermissions(LFPermission &&value)
void SetLakeFormationDataPermissionDetails(const LakeFormationDataPermissionDetails &value)
LakeFormationDataPermissionAsset & WithRoleArn(const Aws::String &value)
LakeFormationDataPermissionAsset & WithPermissions(Aws::Vector< LFPermission > &&value)
LakeFormationDataPermissionAsset & WithLakeFormationDataPermissionType(LakeFormationDataPermissionType &&value)
LakeFormationDataPermissionAsset & WithLakeFormationDataPermissionDetails(const LakeFormationDataPermissionDetails &value)
LakeFormationDataPermissionAsset & WithRoleArn(const char *value)
LakeFormationDataPermissionAsset & WithPermissions(const Aws::Vector< LFPermission > &value)
LakeFormationDataPermissionAsset & AddPermissions(const LFPermission &value)
AWS_DATAEXCHANGE_API LakeFormationDataPermissionAsset & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
LakeFormationDataPermissionAsset & WithLakeFormationDataPermissionType(const LakeFormationDataPermissionType &value)
LakeFormationDataPermissionAsset & WithLakeFormationDataPermissionDetails(LakeFormationDataPermissionDetails &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue