/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DataExchange { namespace Model { /** *

The AWS Lake Formation data permission asset.

See Also:

AWS * API Reference

*/ class LakeFormationDataPermissionAsset { public: AWS_DATAEXCHANGE_API LakeFormationDataPermissionAsset(); AWS_DATAEXCHANGE_API LakeFormationDataPermissionAsset(Aws::Utils::Json::JsonView jsonValue); AWS_DATAEXCHANGE_API LakeFormationDataPermissionAsset& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Details about the AWS Lake Formation data permission.

*/ inline const LakeFormationDataPermissionDetails& GetLakeFormationDataPermissionDetails() const{ return m_lakeFormationDataPermissionDetails; } /** *

Details about the AWS Lake Formation data permission.

*/ inline bool LakeFormationDataPermissionDetailsHasBeenSet() const { return m_lakeFormationDataPermissionDetailsHasBeenSet; } /** *

Details about the AWS Lake Formation data permission.

*/ inline void SetLakeFormationDataPermissionDetails(const LakeFormationDataPermissionDetails& value) { m_lakeFormationDataPermissionDetailsHasBeenSet = true; m_lakeFormationDataPermissionDetails = value; } /** *

Details about the AWS Lake Formation data permission.

*/ inline void SetLakeFormationDataPermissionDetails(LakeFormationDataPermissionDetails&& value) { m_lakeFormationDataPermissionDetailsHasBeenSet = true; m_lakeFormationDataPermissionDetails = std::move(value); } /** *

Details about the AWS Lake Formation data permission.

*/ inline LakeFormationDataPermissionAsset& WithLakeFormationDataPermissionDetails(const LakeFormationDataPermissionDetails& value) { SetLakeFormationDataPermissionDetails(value); return *this;} /** *

Details about the AWS Lake Formation data permission.

*/ inline LakeFormationDataPermissionAsset& WithLakeFormationDataPermissionDetails(LakeFormationDataPermissionDetails&& value) { SetLakeFormationDataPermissionDetails(std::move(value)); return *this;} /** *

The data permission type.

*/ inline const LakeFormationDataPermissionType& GetLakeFormationDataPermissionType() const{ return m_lakeFormationDataPermissionType; } /** *

The data permission type.

*/ inline bool LakeFormationDataPermissionTypeHasBeenSet() const { return m_lakeFormationDataPermissionTypeHasBeenSet; } /** *

The data permission type.

*/ inline void SetLakeFormationDataPermissionType(const LakeFormationDataPermissionType& value) { m_lakeFormationDataPermissionTypeHasBeenSet = true; m_lakeFormationDataPermissionType = value; } /** *

The data permission type.

*/ inline void SetLakeFormationDataPermissionType(LakeFormationDataPermissionType&& value) { m_lakeFormationDataPermissionTypeHasBeenSet = true; m_lakeFormationDataPermissionType = std::move(value); } /** *

The data permission type.

*/ inline LakeFormationDataPermissionAsset& WithLakeFormationDataPermissionType(const LakeFormationDataPermissionType& value) { SetLakeFormationDataPermissionType(value); return *this;} /** *

The data permission type.

*/ inline LakeFormationDataPermissionAsset& WithLakeFormationDataPermissionType(LakeFormationDataPermissionType&& value) { SetLakeFormationDataPermissionType(std::move(value)); return *this;} /** *

The permissions granted to the subscribers on the resource.

*/ inline const Aws::Vector& GetPermissions() const{ return m_permissions; } /** *

The permissions granted to the subscribers on the resource.

*/ inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; } /** *

The permissions granted to the subscribers on the resource.

*/ inline void SetPermissions(const Aws::Vector& value) { m_permissionsHasBeenSet = true; m_permissions = value; } /** *

The permissions granted to the subscribers on the resource.

*/ inline void SetPermissions(Aws::Vector&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); } /** *

The permissions granted to the subscribers on the resource.

*/ inline LakeFormationDataPermissionAsset& WithPermissions(const Aws::Vector& value) { SetPermissions(value); return *this;} /** *

The permissions granted to the subscribers on the resource.

*/ inline LakeFormationDataPermissionAsset& WithPermissions(Aws::Vector&& value) { SetPermissions(std::move(value)); return *this;} /** *

The permissions granted to the subscribers on the resource.

*/ inline LakeFormationDataPermissionAsset& AddPermissions(const LFPermission& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; } /** *

The permissions granted to the subscribers on the resource.

*/ inline LakeFormationDataPermissionAsset& AddPermissions(LFPermission&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; } /** *

The IAM role's ARN that allows AWS Data Exchange to assume the role and grant * and revoke permissions to AWS Lake Formation data permissions.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The IAM role's ARN that allows AWS Data Exchange to assume the role and grant * and revoke permissions to AWS Lake Formation data permissions.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The IAM role's ARN that allows AWS Data Exchange to assume the role and grant * and revoke permissions to AWS Lake Formation data permissions.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The IAM role's ARN that allows AWS Data Exchange to assume the role and grant * and revoke permissions to AWS Lake Formation data permissions.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The IAM role's ARN that allows AWS Data Exchange to assume the role and grant * and revoke permissions to AWS Lake Formation data permissions.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The IAM role's ARN that allows AWS Data Exchange to assume the role and grant * and revoke permissions to AWS Lake Formation data permissions.

*/ inline LakeFormationDataPermissionAsset& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The IAM role's ARN that allows AWS Data Exchange to assume the role and grant * and revoke permissions to AWS Lake Formation data permissions.

*/ inline LakeFormationDataPermissionAsset& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The IAM role's ARN that allows AWS Data Exchange to assume the role and grant * and revoke permissions to AWS Lake Formation data permissions.

*/ inline LakeFormationDataPermissionAsset& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: LakeFormationDataPermissionDetails m_lakeFormationDataPermissionDetails; bool m_lakeFormationDataPermissionDetailsHasBeenSet = false; LakeFormationDataPermissionType m_lakeFormationDataPermissionType; bool m_lakeFormationDataPermissionTypeHasBeenSet = false; Aws::Vector m_permissions; bool m_permissionsHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace DataExchange } // namespace Aws