/** * 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 LakeFormation { namespace Model { /** *

A permission to a resource granted by batch operation to the * principal.

See Also:

AWS * API Reference

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

A unique identifier for the batch permissions request entry.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

A unique identifier for the batch permissions request entry.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

A unique identifier for the batch permissions request entry.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

A unique identifier for the batch permissions request entry.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

A unique identifier for the batch permissions request entry.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

A unique identifier for the batch permissions request entry.

*/ inline BatchPermissionsRequestEntry& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

A unique identifier for the batch permissions request entry.

*/ inline BatchPermissionsRequestEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

A unique identifier for the batch permissions request entry.

*/ inline BatchPermissionsRequestEntry& WithId(const char* value) { SetId(value); return *this;} /** *

The principal to be granted a permission.

*/ inline const DataLakePrincipal& GetPrincipal() const{ return m_principal; } /** *

The principal to be granted a permission.

*/ inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; } /** *

The principal to be granted a permission.

*/ inline void SetPrincipal(const DataLakePrincipal& value) { m_principalHasBeenSet = true; m_principal = value; } /** *

The principal to be granted a permission.

*/ inline void SetPrincipal(DataLakePrincipal&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); } /** *

The principal to be granted a permission.

*/ inline BatchPermissionsRequestEntry& WithPrincipal(const DataLakePrincipal& value) { SetPrincipal(value); return *this;} /** *

The principal to be granted a permission.

*/ inline BatchPermissionsRequestEntry& WithPrincipal(DataLakePrincipal&& value) { SetPrincipal(std::move(value)); return *this;} /** *

The resource to which the principal is to be granted a permission.

*/ inline const Resource& GetResource() const{ return m_resource; } /** *

The resource to which the principal is to be granted a permission.

*/ inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; } /** *

The resource to which the principal is to be granted a permission.

*/ inline void SetResource(const Resource& value) { m_resourceHasBeenSet = true; m_resource = value; } /** *

The resource to which the principal is to be granted a permission.

*/ inline void SetResource(Resource&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); } /** *

The resource to which the principal is to be granted a permission.

*/ inline BatchPermissionsRequestEntry& WithResource(const Resource& value) { SetResource(value); return *this;} /** *

The resource to which the principal is to be granted a permission.

*/ inline BatchPermissionsRequestEntry& WithResource(Resource&& value) { SetResource(std::move(value)); return *this;} /** *

The permissions to be granted.

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

The permissions to be granted.

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

The permissions to be granted.

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

The permissions to be granted.

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

The permissions to be granted.

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

The permissions to be granted.

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

The permissions to be granted.

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

The permissions to be granted.

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

Indicates if the option to pass permissions is granted.

*/ inline const Aws::Vector& GetPermissionsWithGrantOption() const{ return m_permissionsWithGrantOption; } /** *

Indicates if the option to pass permissions is granted.

*/ inline bool PermissionsWithGrantOptionHasBeenSet() const { return m_permissionsWithGrantOptionHasBeenSet; } /** *

Indicates if the option to pass permissions is granted.

*/ inline void SetPermissionsWithGrantOption(const Aws::Vector& value) { m_permissionsWithGrantOptionHasBeenSet = true; m_permissionsWithGrantOption = value; } /** *

Indicates if the option to pass permissions is granted.

*/ inline void SetPermissionsWithGrantOption(Aws::Vector&& value) { m_permissionsWithGrantOptionHasBeenSet = true; m_permissionsWithGrantOption = std::move(value); } /** *

Indicates if the option to pass permissions is granted.

*/ inline BatchPermissionsRequestEntry& WithPermissionsWithGrantOption(const Aws::Vector& value) { SetPermissionsWithGrantOption(value); return *this;} /** *

Indicates if the option to pass permissions is granted.

*/ inline BatchPermissionsRequestEntry& WithPermissionsWithGrantOption(Aws::Vector&& value) { SetPermissionsWithGrantOption(std::move(value)); return *this;} /** *

Indicates if the option to pass permissions is granted.

*/ inline BatchPermissionsRequestEntry& AddPermissionsWithGrantOption(const Permission& value) { m_permissionsWithGrantOptionHasBeenSet = true; m_permissionsWithGrantOption.push_back(value); return *this; } /** *

Indicates if the option to pass permissions is granted.

*/ inline BatchPermissionsRequestEntry& AddPermissionsWithGrantOption(Permission&& value) { m_permissionsWithGrantOptionHasBeenSet = true; m_permissionsWithGrantOption.push_back(std::move(value)); return *this; } private: Aws::String m_id; bool m_idHasBeenSet = false; DataLakePrincipal m_principal; bool m_principalHasBeenSet = false; Resource m_resource; bool m_resourceHasBeenSet = false; Aws::Vector m_permissions; bool m_permissionsHasBeenSet = false; Aws::Vector m_permissionsWithGrantOption; bool m_permissionsWithGrantOptionHasBeenSet = false; }; } // namespace Model } // namespace LakeFormation } // namespace Aws