AWS SDK for C++  1.9.44
AWS SDK for C++
UpdateDashboardPermissionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace QuickSight
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "UpdateDashboardPermissions"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
41  inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
42 
47  inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
48 
53  inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
54 
59  inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
60 
65  inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
66 
71  inline UpdateDashboardPermissionsRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
72 
77  inline UpdateDashboardPermissionsRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
78 
83  inline UpdateDashboardPermissionsRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
84 
85 
89  inline const Aws::String& GetDashboardId() const{ return m_dashboardId; }
90 
94  inline bool DashboardIdHasBeenSet() const { return m_dashboardIdHasBeenSet; }
95 
99  inline void SetDashboardId(const Aws::String& value) { m_dashboardIdHasBeenSet = true; m_dashboardId = value; }
100 
104  inline void SetDashboardId(Aws::String&& value) { m_dashboardIdHasBeenSet = true; m_dashboardId = std::move(value); }
105 
109  inline void SetDashboardId(const char* value) { m_dashboardIdHasBeenSet = true; m_dashboardId.assign(value); }
110 
114  inline UpdateDashboardPermissionsRequest& WithDashboardId(const Aws::String& value) { SetDashboardId(value); return *this;}
115 
119  inline UpdateDashboardPermissionsRequest& WithDashboardId(Aws::String&& value) { SetDashboardId(std::move(value)); return *this;}
120 
124  inline UpdateDashboardPermissionsRequest& WithDashboardId(const char* value) { SetDashboardId(value); return *this;}
125 
126 
130  inline const Aws::Vector<ResourcePermission>& GetGrantPermissions() const{ return m_grantPermissions; }
131 
135  inline bool GrantPermissionsHasBeenSet() const { return m_grantPermissionsHasBeenSet; }
136 
140  inline void SetGrantPermissions(const Aws::Vector<ResourcePermission>& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions = value; }
141 
145  inline void SetGrantPermissions(Aws::Vector<ResourcePermission>&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions = std::move(value); }
146 
150  inline UpdateDashboardPermissionsRequest& WithGrantPermissions(const Aws::Vector<ResourcePermission>& value) { SetGrantPermissions(value); return *this;}
151 
155  inline UpdateDashboardPermissionsRequest& WithGrantPermissions(Aws::Vector<ResourcePermission>&& value) { SetGrantPermissions(std::move(value)); return *this;}
156 
160  inline UpdateDashboardPermissionsRequest& AddGrantPermissions(const ResourcePermission& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(value); return *this; }
161 
165  inline UpdateDashboardPermissionsRequest& AddGrantPermissions(ResourcePermission&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(std::move(value)); return *this; }
166 
167 
171  inline const Aws::Vector<ResourcePermission>& GetRevokePermissions() const{ return m_revokePermissions; }
172 
176  inline bool RevokePermissionsHasBeenSet() const { return m_revokePermissionsHasBeenSet; }
177 
181  inline void SetRevokePermissions(const Aws::Vector<ResourcePermission>& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = value; }
182 
186  inline void SetRevokePermissions(Aws::Vector<ResourcePermission>&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = std::move(value); }
187 
191  inline UpdateDashboardPermissionsRequest& WithRevokePermissions(const Aws::Vector<ResourcePermission>& value) { SetRevokePermissions(value); return *this;}
192 
196  inline UpdateDashboardPermissionsRequest& WithRevokePermissions(Aws::Vector<ResourcePermission>&& value) { SetRevokePermissions(std::move(value)); return *this;}
197 
201  inline UpdateDashboardPermissionsRequest& AddRevokePermissions(const ResourcePermission& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(value); return *this; }
202 
206  inline UpdateDashboardPermissionsRequest& AddRevokePermissions(ResourcePermission&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(std::move(value)); return *this; }
207 
208  private:
209 
210  Aws::String m_awsAccountId;
211  bool m_awsAccountIdHasBeenSet;
212 
213  Aws::String m_dashboardId;
214  bool m_dashboardIdHasBeenSet;
215 
216  Aws::Vector<ResourcePermission> m_grantPermissions;
217  bool m_grantPermissionsHasBeenSet;
218 
219  Aws::Vector<ResourcePermission> m_revokePermissions;
220  bool m_revokePermissionsHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace QuickSight
225 } // namespace Aws
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::GrantPermissionsHasBeenSet
bool GrantPermissionsHasBeenSet() const
Definition: UpdateDashboardPermissionsRequest.h:135
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::AddRevokePermissions
UpdateDashboardPermissionsRequest & AddRevokePermissions(const ResourcePermission &value)
Definition: UpdateDashboardPermissionsRequest.h:201
QuickSight_EXPORTS.h
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::SetGrantPermissions
void SetGrantPermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateDashboardPermissionsRequest.h:145
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::WithGrantPermissions
UpdateDashboardPermissionsRequest & WithGrantPermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateDashboardPermissionsRequest.h:155
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest
Definition: UpdateDashboardPermissionsRequest.h:24
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::SetRevokePermissions
void SetRevokePermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateDashboardPermissionsRequest.h:181
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::WithDashboardId
UpdateDashboardPermissionsRequest & WithDashboardId(const char *value)
Definition: UpdateDashboardPermissionsRequest.h:124
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::SetRevokePermissions
void SetRevokePermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateDashboardPermissionsRequest.h:186
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::WithRevokePermissions
UpdateDashboardPermissionsRequest & WithRevokePermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateDashboardPermissionsRequest.h:196
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::SetDashboardId
void SetDashboardId(Aws::String &&value)
Definition: UpdateDashboardPermissionsRequest.h:104
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::WithDashboardId
UpdateDashboardPermissionsRequest & WithDashboardId(const Aws::String &value)
Definition: UpdateDashboardPermissionsRequest.h:114
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::SetAwsAccountId
void SetAwsAccountId(const char *value)
Definition: UpdateDashboardPermissionsRequest.h:65
AWSVector.h
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::WithGrantPermissions
UpdateDashboardPermissionsRequest & WithGrantPermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateDashboardPermissionsRequest.h:150
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::UpdateDashboardPermissionsRequest
UpdateDashboardPermissionsRequest()
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::AwsAccountIdHasBeenSet
bool AwsAccountIdHasBeenSet() const
Definition: UpdateDashboardPermissionsRequest.h:47
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::SetDashboardId
void SetDashboardId(const char *value)
Definition: UpdateDashboardPermissionsRequest.h:109
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::DashboardIdHasBeenSet
bool DashboardIdHasBeenSet() const
Definition: UpdateDashboardPermissionsRequest.h:94
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::WithAwsAccountId
UpdateDashboardPermissionsRequest & WithAwsAccountId(const Aws::String &value)
Definition: UpdateDashboardPermissionsRequest.h:71
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::WithRevokePermissions
UpdateDashboardPermissionsRequest & WithRevokePermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateDashboardPermissionsRequest.h:191
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::WithAwsAccountId
UpdateDashboardPermissionsRequest & WithAwsAccountId(const char *value)
Definition: UpdateDashboardPermissionsRequest.h:83
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::AddGrantPermissions
UpdateDashboardPermissionsRequest & AddGrantPermissions(ResourcePermission &&value)
Definition: UpdateDashboardPermissionsRequest.h:165
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::WithDashboardId
UpdateDashboardPermissionsRequest & WithDashboardId(Aws::String &&value)
Definition: UpdateDashboardPermissionsRequest.h:119
QuickSightRequest.h
Aws::QuickSight::Model::ResourcePermission
Definition: ResourcePermission.h:33
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::SetAwsAccountId
void SetAwsAccountId(Aws::String &&value)
Definition: UpdateDashboardPermissionsRequest.h:59
ResourcePermission.h
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::SetGrantPermissions
void SetGrantPermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateDashboardPermissionsRequest.h:140
AWSString.h
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::AddRevokePermissions
UpdateDashboardPermissionsRequest & AddRevokePermissions(ResourcePermission &&value)
Definition: UpdateDashboardPermissionsRequest.h:206
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::GetGrantPermissions
const Aws::Vector< ResourcePermission > & GetGrantPermissions() const
Definition: UpdateDashboardPermissionsRequest.h:130
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::GetRevokePermissions
const Aws::Vector< ResourcePermission > & GetRevokePermissions() const
Definition: UpdateDashboardPermissionsRequest.h:171
AWS_QUICKSIGHT_API
#define AWS_QUICKSIGHT_API
Definition: QuickSight_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::GetDashboardId
const Aws::String & GetDashboardId() const
Definition: UpdateDashboardPermissionsRequest.h:89
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::GetAwsAccountId
const Aws::String & GetAwsAccountId() const
Definition: UpdateDashboardPermissionsRequest.h:41
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::SetAwsAccountId
void SetAwsAccountId(const Aws::String &value)
Definition: UpdateDashboardPermissionsRequest.h:53
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::SetDashboardId
void SetDashboardId(const Aws::String &value)
Definition: UpdateDashboardPermissionsRequest.h:99
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateDashboardPermissionsRequest.h:32
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::WithAwsAccountId
UpdateDashboardPermissionsRequest & WithAwsAccountId(Aws::String &&value)
Definition: UpdateDashboardPermissionsRequest.h:77
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::RevokePermissionsHasBeenSet
bool RevokePermissionsHasBeenSet() const
Definition: UpdateDashboardPermissionsRequest.h:176
Aws::QuickSight::QuickSightRequest
Definition: QuickSightRequest.h:17
Aws::QuickSight::Model::UpdateDashboardPermissionsRequest::AddGrantPermissions
UpdateDashboardPermissionsRequest & AddGrantPermissions(const ResourcePermission &value)
Definition: UpdateDashboardPermissionsRequest.h:160