AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateDashboardPermissionsRequest.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 UpdateDashboardPermissionsRequest() = 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 "UpdateDashboardPermissions"; }
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& GetDashboardId() const { return m_dashboardId; }
57 inline bool DashboardIdHasBeenSet() const { return m_dashboardIdHasBeenSet; }
58 template <typename DashboardIdT = Aws::String>
59 void SetDashboardId(DashboardIdT&& value) {
60 m_dashboardIdHasBeenSet = true;
61 m_dashboardId = std::forward<DashboardIdT>(value);
62 }
63 template <typename DashboardIdT = Aws::String>
65 SetDashboardId(std::forward<DashboardIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Vector<ResourcePermission>& GetGrantPermissions() const { return m_grantPermissions; }
75 inline bool GrantPermissionsHasBeenSet() const { return m_grantPermissionsHasBeenSet; }
76 template <typename GrantPermissionsT = Aws::Vector<ResourcePermission>>
77 void SetGrantPermissions(GrantPermissionsT&& value) {
78 m_grantPermissionsHasBeenSet = true;
79 m_grantPermissions = std::forward<GrantPermissionsT>(value);
80 }
81 template <typename GrantPermissionsT = Aws::Vector<ResourcePermission>>
83 SetGrantPermissions(std::forward<GrantPermissionsT>(value));
84 return *this;
85 }
86 template <typename GrantPermissionsT = ResourcePermission>
88 m_grantPermissionsHasBeenSet = true;
89 m_grantPermissions.emplace_back(std::forward<GrantPermissionsT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Vector<ResourcePermission>& GetRevokePermissions() const { return m_revokePermissions; }
99 inline bool RevokePermissionsHasBeenSet() const { return m_revokePermissionsHasBeenSet; }
100 template <typename RevokePermissionsT = Aws::Vector<ResourcePermission>>
101 void SetRevokePermissions(RevokePermissionsT&& value) {
102 m_revokePermissionsHasBeenSet = true;
103 m_revokePermissions = std::forward<RevokePermissionsT>(value);
104 }
105 template <typename RevokePermissionsT = Aws::Vector<ResourcePermission>>
107 SetRevokePermissions(std::forward<RevokePermissionsT>(value));
108 return *this;
109 }
110 template <typename RevokePermissionsT = ResourcePermission>
112 m_revokePermissionsHasBeenSet = true;
113 m_revokePermissions.emplace_back(std::forward<RevokePermissionsT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Vector<ResourcePermission>& GetGrantLinkPermissions() const { return m_grantLinkPermissions; }
123 inline bool GrantLinkPermissionsHasBeenSet() const { return m_grantLinkPermissionsHasBeenSet; }
124 template <typename GrantLinkPermissionsT = Aws::Vector<ResourcePermission>>
125 void SetGrantLinkPermissions(GrantLinkPermissionsT&& value) {
126 m_grantLinkPermissionsHasBeenSet = true;
127 m_grantLinkPermissions = std::forward<GrantLinkPermissionsT>(value);
128 }
129 template <typename GrantLinkPermissionsT = Aws::Vector<ResourcePermission>>
131 SetGrantLinkPermissions(std::forward<GrantLinkPermissionsT>(value));
132 return *this;
133 }
134 template <typename GrantLinkPermissionsT = ResourcePermission>
136 m_grantLinkPermissionsHasBeenSet = true;
137 m_grantLinkPermissions.emplace_back(std::forward<GrantLinkPermissionsT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Vector<ResourcePermission>& GetRevokeLinkPermissions() const { return m_revokeLinkPermissions; }
147 inline bool RevokeLinkPermissionsHasBeenSet() const { return m_revokeLinkPermissionsHasBeenSet; }
148 template <typename RevokeLinkPermissionsT = Aws::Vector<ResourcePermission>>
149 void SetRevokeLinkPermissions(RevokeLinkPermissionsT&& value) {
150 m_revokeLinkPermissionsHasBeenSet = true;
151 m_revokeLinkPermissions = std::forward<RevokeLinkPermissionsT>(value);
152 }
153 template <typename RevokeLinkPermissionsT = Aws::Vector<ResourcePermission>>
155 SetRevokeLinkPermissions(std::forward<RevokeLinkPermissionsT>(value));
156 return *this;
157 }
158 template <typename RevokeLinkPermissionsT = ResourcePermission>
160 m_revokeLinkPermissionsHasBeenSet = true;
161 m_revokeLinkPermissions.emplace_back(std::forward<RevokeLinkPermissionsT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_awsAccountId;
167
168 Aws::String m_dashboardId;
169
170 Aws::Vector<ResourcePermission> m_grantPermissions;
171
172 Aws::Vector<ResourcePermission> m_revokePermissions;
173
174 Aws::Vector<ResourcePermission> m_grantLinkPermissions;
175
176 Aws::Vector<ResourcePermission> m_revokeLinkPermissions;
177 bool m_awsAccountIdHasBeenSet = false;
178 bool m_dashboardIdHasBeenSet = false;
179 bool m_grantPermissionsHasBeenSet = false;
180 bool m_revokePermissionsHasBeenSet = false;
181 bool m_grantLinkPermissionsHasBeenSet = false;
182 bool m_revokeLinkPermissionsHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace QuickSight
187} // namespace Aws
UpdateDashboardPermissionsRequest & WithGrantPermissions(GrantPermissionsT &&value)
UpdateDashboardPermissionsRequest & AddGrantLinkPermissions(GrantLinkPermissionsT &&value)
UpdateDashboardPermissionsRequest & WithDashboardId(DashboardIdT &&value)
UpdateDashboardPermissionsRequest & AddRevokeLinkPermissions(RevokeLinkPermissionsT &&value)
const Aws::Vector< ResourcePermission > & GetGrantPermissions() const
UpdateDashboardPermissionsRequest & WithGrantLinkPermissions(GrantLinkPermissionsT &&value)
AWS_QUICKSIGHT_API UpdateDashboardPermissionsRequest()=default
UpdateDashboardPermissionsRequest & WithRevokePermissions(RevokePermissionsT &&value)
const Aws::Vector< ResourcePermission > & GetRevokeLinkPermissions() const
const Aws::Vector< ResourcePermission > & GetGrantLinkPermissions() const
UpdateDashboardPermissionsRequest & WithRevokeLinkPermissions(RevokeLinkPermissionsT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
UpdateDashboardPermissionsRequest & AddRevokePermissions(RevokePermissionsT &&value)
const Aws::Vector< ResourcePermission > & GetRevokePermissions() const
UpdateDashboardPermissionsRequest & WithAwsAccountId(AwsAccountIdT &&value)
UpdateDashboardPermissionsRequest & AddGrantPermissions(GrantPermissionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector