/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A permission to a resource granted by batch operation to the
* principal.See Also:
AWS
* API Reference
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::VectorThe permissions to be granted.
*/ inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; } /** *The permissions to be granted.
*/ inline void SetPermissions(const Aws::VectorThe permissions to be granted.
*/ inline void SetPermissions(Aws::VectorThe permissions to be granted.
*/ inline BatchPermissionsRequestEntry& WithPermissions(const Aws::VectorThe permissions to be granted.
*/ inline BatchPermissionsRequestEntry& WithPermissions(Aws::VectorThe 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::VectorIndicates 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::VectorIndicates if the option to pass permissions is granted.
*/ inline void SetPermissionsWithGrantOption(Aws::VectorIndicates if the option to pass permissions is granted.
*/ inline BatchPermissionsRequestEntry& WithPermissionsWithGrantOption(const Aws::VectorIndicates if the option to pass permissions is granted.
*/ inline BatchPermissionsRequestEntry& WithPermissionsWithGrantOption(Aws::VectorIndicates 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