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

A list of failures when performing a batch grant or batch revoke * operation.

See Also:

AWS * API Reference

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

An identifier for an entry of the batch request.

*/ inline const BatchPermissionsRequestEntry& GetRequestEntry() const{ return m_requestEntry; } /** *

An identifier for an entry of the batch request.

*/ inline bool RequestEntryHasBeenSet() const { return m_requestEntryHasBeenSet; } /** *

An identifier for an entry of the batch request.

*/ inline void SetRequestEntry(const BatchPermissionsRequestEntry& value) { m_requestEntryHasBeenSet = true; m_requestEntry = value; } /** *

An identifier for an entry of the batch request.

*/ inline void SetRequestEntry(BatchPermissionsRequestEntry&& value) { m_requestEntryHasBeenSet = true; m_requestEntry = std::move(value); } /** *

An identifier for an entry of the batch request.

*/ inline BatchPermissionsFailureEntry& WithRequestEntry(const BatchPermissionsRequestEntry& value) { SetRequestEntry(value); return *this;} /** *

An identifier for an entry of the batch request.

*/ inline BatchPermissionsFailureEntry& WithRequestEntry(BatchPermissionsRequestEntry&& value) { SetRequestEntry(std::move(value)); return *this;} /** *

An error message that applies to the failure of the entry.

*/ inline const ErrorDetail& GetError() const{ return m_error; } /** *

An error message that applies to the failure of the entry.

*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *

An error message that applies to the failure of the entry.

*/ inline void SetError(const ErrorDetail& value) { m_errorHasBeenSet = true; m_error = value; } /** *

An error message that applies to the failure of the entry.

*/ inline void SetError(ErrorDetail&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *

An error message that applies to the failure of the entry.

*/ inline BatchPermissionsFailureEntry& WithError(const ErrorDetail& value) { SetError(value); return *this;} /** *

An error message that applies to the failure of the entry.

*/ inline BatchPermissionsFailureEntry& WithError(ErrorDetail&& value) { SetError(std::move(value)); return *this;} private: BatchPermissionsRequestEntry m_requestEntry; bool m_requestEntryHasBeenSet = false; ErrorDetail m_error; bool m_errorHasBeenSet = false; }; } // namespace Model } // namespace LakeFormation } // namespace Aws