AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchGrantPermissionsRequest.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 BatchGrantPermissionsRequest();
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 "BatchGrantPermissions"; }
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 inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
47 inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
48 inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
49 inline BatchGrantPermissionsRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
50 inline BatchGrantPermissionsRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
51 inline BatchGrantPermissionsRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
53
55
59 inline const Aws::Vector<BatchPermissionsRequestEntry>& GetEntries() const{ return m_entries; }
60 inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
61 inline void SetEntries(const Aws::Vector<BatchPermissionsRequestEntry>& value) { m_entriesHasBeenSet = true; m_entries = value; }
62 inline void SetEntries(Aws::Vector<BatchPermissionsRequestEntry>&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); }
65 inline BatchGrantPermissionsRequest& AddEntries(const BatchPermissionsRequestEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; }
66 inline BatchGrantPermissionsRequest& AddEntries(BatchPermissionsRequestEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(std::move(value)); return *this; }
68 private:
69
70 Aws::String m_catalogId;
71 bool m_catalogIdHasBeenSet = false;
72
74 bool m_entriesHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace LakeFormation
79} // namespace Aws
AWS_LAKEFORMATION_API Aws::String SerializePayload() const override
BatchGrantPermissionsRequest & WithEntries(Aws::Vector< BatchPermissionsRequestEntry > &&value)
void SetEntries(const Aws::Vector< BatchPermissionsRequestEntry > &value)
BatchGrantPermissionsRequest & WithCatalogId(Aws::String &&value)
BatchGrantPermissionsRequest & AddEntries(BatchPermissionsRequestEntry &&value)
BatchGrantPermissionsRequest & AddEntries(const BatchPermissionsRequestEntry &value)
BatchGrantPermissionsRequest & WithCatalogId(const Aws::String &value)
BatchGrantPermissionsRequest & WithCatalogId(const char *value)
void SetEntries(Aws::Vector< BatchPermissionsRequestEntry > &&value)
BatchGrantPermissionsRequest & WithEntries(const Aws::Vector< BatchPermissionsRequestEntry > &value)
const Aws::Vector< BatchPermissionsRequestEntry > & GetEntries() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector