AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchPermissionsFailureEntry.h
1
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
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LakeFormation
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LAKEFORMATION_API BatchPermissionsFailureEntry() = default;
39 AWS_LAKEFORMATION_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const BatchPermissionsRequestEntry& GetRequestEntry() const { return m_requestEntry; }
47 inline bool RequestEntryHasBeenSet() const { return m_requestEntryHasBeenSet; }
48 template<typename RequestEntryT = BatchPermissionsRequestEntry>
49 void SetRequestEntry(RequestEntryT&& value) { m_requestEntryHasBeenSet = true; m_requestEntry = std::forward<RequestEntryT>(value); }
50 template<typename RequestEntryT = BatchPermissionsRequestEntry>
51 BatchPermissionsFailureEntry& WithRequestEntry(RequestEntryT&& value) { SetRequestEntry(std::forward<RequestEntryT>(value)); return *this;}
53
55
58 inline const ErrorDetail& GetError() const { return m_error; }
59 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
60 template<typename ErrorT = ErrorDetail>
61 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
62 template<typename ErrorT = ErrorDetail>
63 BatchPermissionsFailureEntry& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
65 private:
66
67 BatchPermissionsRequestEntry m_requestEntry;
68 bool m_requestEntryHasBeenSet = false;
69
70 ErrorDetail m_error;
71 bool m_errorHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace LakeFormation
76} // namespace Aws
const ErrorDetail & GetError() const
AWS_LAKEFORMATION_API BatchPermissionsFailureEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAKEFORMATION_API BatchPermissionsFailureEntry()=default
bool ErrorHasBeenSet() const
AWS_LAKEFORMATION_API Aws::Utils::Json::JsonValue Jsonize() const
const BatchPermissionsRequestEntry & GetRequestEntry() const
BatchPermissionsFailureEntry & WithRequestEntry(RequestEntryT &&value)
BatchPermissionsFailureEntry & WithError(ErrorT &&value)
void SetError(ErrorT &&value)
bool RequestEntryHasBeenSet() const
void SetRequestEntry(RequestEntryT &&value)
AWS_LAKEFORMATION_API BatchPermissionsFailureEntry(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue