AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchRevokePermissionsRequest.h
1
6#pragma once
7#include <aws/lakeformation/LakeFormation_EXPORTS.h>
8#include <aws/lakeformation/LakeFormationRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lakeformation/model/BatchPermissionsRequestEntry.h>
12#include <utility>
13
14namespace Aws
15{
16namespace LakeFormation
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LAKEFORMATION_API BatchRevokePermissionsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "BatchRevokePermissions"; }
33
34 AWS_LAKEFORMATION_API Aws::String SerializePayload() const override;
35
36
38
44 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
45 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
46 template<typename CatalogIdT = Aws::String>
47 void SetCatalogId(CatalogIdT&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::forward<CatalogIdT>(value); }
48 template<typename CatalogIdT = Aws::String>
49 BatchRevokePermissionsRequest& WithCatalogId(CatalogIdT&& value) { SetCatalogId(std::forward<CatalogIdT>(value)); return *this;}
51
53
57 inline const Aws::Vector<BatchPermissionsRequestEntry>& GetEntries() const { return m_entries; }
58 inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
59 template<typename EntriesT = Aws::Vector<BatchPermissionsRequestEntry>>
60 void SetEntries(EntriesT&& value) { m_entriesHasBeenSet = true; m_entries = std::forward<EntriesT>(value); }
61 template<typename EntriesT = Aws::Vector<BatchPermissionsRequestEntry>>
62 BatchRevokePermissionsRequest& WithEntries(EntriesT&& value) { SetEntries(std::forward<EntriesT>(value)); return *this;}
63 template<typename EntriesT = BatchPermissionsRequestEntry>
64 BatchRevokePermissionsRequest& AddEntries(EntriesT&& value) { m_entriesHasBeenSet = true; m_entries.emplace_back(std::forward<EntriesT>(value)); return *this; }
66 private:
67
68 Aws::String m_catalogId;
69 bool m_catalogIdHasBeenSet = false;
70
72 bool m_entriesHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace LakeFormation
77} // namespace Aws
const Aws::Vector< BatchPermissionsRequestEntry > & GetEntries() const
BatchRevokePermissionsRequest & WithCatalogId(CatalogIdT &&value)
BatchRevokePermissionsRequest & AddEntries(EntriesT &&value)
BatchRevokePermissionsRequest & WithEntries(EntriesT &&value)
AWS_LAKEFORMATION_API Aws::String SerializePayload() const override
AWS_LAKEFORMATION_API BatchRevokePermissionsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector