AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateFolderPermissionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSightRequest.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/ResourcePermission.h>
12
13#include <utility>
14
15namespace Aws {
16namespace QuickSight {
17namespace Model {
18
22 public:
23 AWS_QUICKSIGHT_API UpdateFolderPermissionsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateFolderPermissions"; }
30
31 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
39 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
40 template <typename AwsAccountIdT = Aws::String>
41 void SetAwsAccountId(AwsAccountIdT&& value) {
42 m_awsAccountIdHasBeenSet = true;
43 m_awsAccountId = std::forward<AwsAccountIdT>(value);
44 }
45 template <typename AwsAccountIdT = Aws::String>
47 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetFolderId() const { return m_folderId; }
57 inline bool FolderIdHasBeenSet() const { return m_folderIdHasBeenSet; }
58 template <typename FolderIdT = Aws::String>
59 void SetFolderId(FolderIdT&& value) {
60 m_folderIdHasBeenSet = true;
61 m_folderId = std::forward<FolderIdT>(value);
62 }
63 template <typename FolderIdT = Aws::String>
65 SetFolderId(std::forward<FolderIdT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::Vector<ResourcePermission>& GetGrantPermissions() const { return m_grantPermissions; }
76 inline bool GrantPermissionsHasBeenSet() const { return m_grantPermissionsHasBeenSet; }
77 template <typename GrantPermissionsT = Aws::Vector<ResourcePermission>>
78 void SetGrantPermissions(GrantPermissionsT&& value) {
79 m_grantPermissionsHasBeenSet = true;
80 m_grantPermissions = std::forward<GrantPermissionsT>(value);
81 }
82 template <typename GrantPermissionsT = Aws::Vector<ResourcePermission>>
84 SetGrantPermissions(std::forward<GrantPermissionsT>(value));
85 return *this;
86 }
87 template <typename GrantPermissionsT = ResourcePermission>
89 m_grantPermissionsHasBeenSet = true;
90 m_grantPermissions.emplace_back(std::forward<GrantPermissionsT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Vector<ResourcePermission>& GetRevokePermissions() const { return m_revokePermissions; }
101 inline bool RevokePermissionsHasBeenSet() const { return m_revokePermissionsHasBeenSet; }
102 template <typename RevokePermissionsT = Aws::Vector<ResourcePermission>>
103 void SetRevokePermissions(RevokePermissionsT&& value) {
104 m_revokePermissionsHasBeenSet = true;
105 m_revokePermissions = std::forward<RevokePermissionsT>(value);
106 }
107 template <typename RevokePermissionsT = Aws::Vector<ResourcePermission>>
109 SetRevokePermissions(std::forward<RevokePermissionsT>(value));
110 return *this;
111 }
112 template <typename RevokePermissionsT = ResourcePermission>
114 m_revokePermissionsHasBeenSet = true;
115 m_revokePermissions.emplace_back(std::forward<RevokePermissionsT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_awsAccountId;
121
122 Aws::String m_folderId;
123
124 Aws::Vector<ResourcePermission> m_grantPermissions;
125
126 Aws::Vector<ResourcePermission> m_revokePermissions;
127 bool m_awsAccountIdHasBeenSet = false;
128 bool m_folderIdHasBeenSet = false;
129 bool m_grantPermissionsHasBeenSet = false;
130 bool m_revokePermissionsHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace QuickSight
135} // namespace Aws
const Aws::Vector< ResourcePermission > & GetGrantPermissions() const
UpdateFolderPermissionsRequest & AddGrantPermissions(GrantPermissionsT &&value)
UpdateFolderPermissionsRequest & WithRevokePermissions(RevokePermissionsT &&value)
UpdateFolderPermissionsRequest & WithAwsAccountId(AwsAccountIdT &&value)
UpdateFolderPermissionsRequest & AddRevokePermissions(RevokePermissionsT &&value)
UpdateFolderPermissionsRequest & WithFolderId(FolderIdT &&value)
AWS_QUICKSIGHT_API UpdateFolderPermissionsRequest()=default
UpdateFolderPermissionsRequest & WithGrantPermissions(GrantPermissionsT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
const Aws::Vector< ResourcePermission > & GetRevokePermissions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector