1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/lakeformation/LakeFormation_EXPORTS.h> 8 #include <aws/lakeformation/model/BatchPermissionsRequestEntry.h> 9 #include <aws/lakeformation/model/ErrorDetail.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace Utils 15 { 16 namespace Json 17 { 18 class JsonValue; 19 class JsonView; 20 } // namespace Json 21 } // namespace Utils 22 namespace LakeFormation 23 { 24 namespace Model 25 { 26 27 /** 28 * <p>A list of failures when performing a batch grant or batch revoke 29 * operation.</p><p><h3>See Also:</h3> <a 30 * href="http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/BatchPermissionsFailureEntry">AWS 31 * API Reference</a></p> 32 */ 33 class AWS_LAKEFORMATION_API BatchPermissionsFailureEntry 34 { 35 public: 36 BatchPermissionsFailureEntry(); 37 BatchPermissionsFailureEntry(Aws::Utils::Json::JsonView jsonValue); 38 BatchPermissionsFailureEntry& operator=(Aws::Utils::Json::JsonView jsonValue); 39 Aws::Utils::Json::JsonValue Jsonize() const; 40 41 42 /** 43 * <p>An identifier for an entry of the batch request.</p> 44 */ GetRequestEntry()45 inline const BatchPermissionsRequestEntry& GetRequestEntry() const{ return m_requestEntry; } 46 47 /** 48 * <p>An identifier for an entry of the batch request.</p> 49 */ RequestEntryHasBeenSet()50 inline bool RequestEntryHasBeenSet() const { return m_requestEntryHasBeenSet; } 51 52 /** 53 * <p>An identifier for an entry of the batch request.</p> 54 */ SetRequestEntry(const BatchPermissionsRequestEntry & value)55 inline void SetRequestEntry(const BatchPermissionsRequestEntry& value) { m_requestEntryHasBeenSet = true; m_requestEntry = value; } 56 57 /** 58 * <p>An identifier for an entry of the batch request.</p> 59 */ SetRequestEntry(BatchPermissionsRequestEntry && value)60 inline void SetRequestEntry(BatchPermissionsRequestEntry&& value) { m_requestEntryHasBeenSet = true; m_requestEntry = std::move(value); } 61 62 /** 63 * <p>An identifier for an entry of the batch request.</p> 64 */ WithRequestEntry(const BatchPermissionsRequestEntry & value)65 inline BatchPermissionsFailureEntry& WithRequestEntry(const BatchPermissionsRequestEntry& value) { SetRequestEntry(value); return *this;} 66 67 /** 68 * <p>An identifier for an entry of the batch request.</p> 69 */ WithRequestEntry(BatchPermissionsRequestEntry && value)70 inline BatchPermissionsFailureEntry& WithRequestEntry(BatchPermissionsRequestEntry&& value) { SetRequestEntry(std::move(value)); return *this;} 71 72 73 /** 74 * <p>An error message that applies to the failure of the entry.</p> 75 */ GetError()76 inline const ErrorDetail& GetError() const{ return m_error; } 77 78 /** 79 * <p>An error message that applies to the failure of the entry.</p> 80 */ ErrorHasBeenSet()81 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } 82 83 /** 84 * <p>An error message that applies to the failure of the entry.</p> 85 */ SetError(const ErrorDetail & value)86 inline void SetError(const ErrorDetail& value) { m_errorHasBeenSet = true; m_error = value; } 87 88 /** 89 * <p>An error message that applies to the failure of the entry.</p> 90 */ SetError(ErrorDetail && value)91 inline void SetError(ErrorDetail&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } 92 93 /** 94 * <p>An error message that applies to the failure of the entry.</p> 95 */ WithError(const ErrorDetail & value)96 inline BatchPermissionsFailureEntry& WithError(const ErrorDetail& value) { SetError(value); return *this;} 97 98 /** 99 * <p>An error message that applies to the failure of the entry.</p> 100 */ WithError(ErrorDetail && value)101 inline BatchPermissionsFailureEntry& WithError(ErrorDetail&& value) { SetError(std::move(value)); return *this;} 102 103 private: 104 105 BatchPermissionsRequestEntry m_requestEntry; 106 bool m_requestEntryHasBeenSet; 107 108 ErrorDetail m_error; 109 bool m_errorHasBeenSet; 110 }; 111 112 } // namespace Model 113 } // namespace LakeFormation 114 } // namespace Aws 115