AWS SDK for C++  1.9.44
AWS SDK for C++
UpdateDataSourcePermissionsRequest.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 "UpdateDataSourcePermissions"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
41 
45  inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
46 
50  inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
51 
55  inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
56 
60  inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
61 
65  inline UpdateDataSourcePermissionsRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
66 
70  inline UpdateDataSourcePermissionsRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
71 
75  inline UpdateDataSourcePermissionsRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
76 
77 
82  inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; }
83 
88  inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
89 
94  inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
95 
100  inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); }
101 
106  inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); }
107 
112  inline UpdateDataSourcePermissionsRequest& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;}
113 
118  inline UpdateDataSourcePermissionsRequest& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;}
119 
124  inline UpdateDataSourcePermissionsRequest& WithDataSourceId(const char* value) { SetDataSourceId(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 UpdateDataSourcePermissionsRequest& WithGrantPermissions(const Aws::Vector<ResourcePermission>& value) { SetGrantPermissions(value); return *this;}
151 
155  inline UpdateDataSourcePermissionsRequest& WithGrantPermissions(Aws::Vector<ResourcePermission>&& value) { SetGrantPermissions(std::move(value)); return *this;}
156 
160  inline UpdateDataSourcePermissionsRequest& AddGrantPermissions(const ResourcePermission& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(value); return *this; }
161 
165  inline UpdateDataSourcePermissionsRequest& AddGrantPermissions(ResourcePermission&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(std::move(value)); return *this; }
166 
167 
172  inline const Aws::Vector<ResourcePermission>& GetRevokePermissions() const{ return m_revokePermissions; }
173 
178  inline bool RevokePermissionsHasBeenSet() const { return m_revokePermissionsHasBeenSet; }
179 
184  inline void SetRevokePermissions(const Aws::Vector<ResourcePermission>& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = value; }
185 
190  inline void SetRevokePermissions(Aws::Vector<ResourcePermission>&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = std::move(value); }
191 
196  inline UpdateDataSourcePermissionsRequest& WithRevokePermissions(const Aws::Vector<ResourcePermission>& value) { SetRevokePermissions(value); return *this;}
197 
202  inline UpdateDataSourcePermissionsRequest& WithRevokePermissions(Aws::Vector<ResourcePermission>&& value) { SetRevokePermissions(std::move(value)); return *this;}
203 
208  inline UpdateDataSourcePermissionsRequest& AddRevokePermissions(const ResourcePermission& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(value); return *this; }
209 
214  inline UpdateDataSourcePermissionsRequest& AddRevokePermissions(ResourcePermission&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(std::move(value)); return *this; }
215 
216  private:
217 
218  Aws::String m_awsAccountId;
219  bool m_awsAccountIdHasBeenSet;
220 
221  Aws::String m_dataSourceId;
222  bool m_dataSourceIdHasBeenSet;
223 
224  Aws::Vector<ResourcePermission> m_grantPermissions;
225  bool m_grantPermissionsHasBeenSet;
226 
227  Aws::Vector<ResourcePermission> m_revokePermissions;
228  bool m_revokePermissionsHasBeenSet;
229  };
230 
231 } // namespace Model
232 } // namespace QuickSight
233 } // namespace Aws
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::AddGrantPermissions
UpdateDataSourcePermissionsRequest & AddGrantPermissions(ResourcePermission &&value)
Definition: UpdateDataSourcePermissionsRequest.h:165
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::SetDataSourceId
void SetDataSourceId(const Aws::String &value)
Definition: UpdateDataSourcePermissionsRequest.h:94
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::SerializePayload
Aws::String SerializePayload() const override
QuickSight_EXPORTS.h
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::SetGrantPermissions
void SetGrantPermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateDataSourcePermissionsRequest.h:145
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::SetAwsAccountId
void SetAwsAccountId(const char *value)
Definition: UpdateDataSourcePermissionsRequest.h:60
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::SetDataSourceId
void SetDataSourceId(Aws::String &&value)
Definition: UpdateDataSourcePermissionsRequest.h:100
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::AddGrantPermissions
UpdateDataSourcePermissionsRequest & AddGrantPermissions(const ResourcePermission &value)
Definition: UpdateDataSourcePermissionsRequest.h:160
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::GetGrantPermissions
const Aws::Vector< ResourcePermission > & GetGrantPermissions() const
Definition: UpdateDataSourcePermissionsRequest.h:130
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest
Definition: UpdateDataSourcePermissionsRequest.h:24
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::AwsAccountIdHasBeenSet
bool AwsAccountIdHasBeenSet() const
Definition: UpdateDataSourcePermissionsRequest.h:45
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::WithDataSourceId
UpdateDataSourcePermissionsRequest & WithDataSourceId(const Aws::String &value)
Definition: UpdateDataSourcePermissionsRequest.h:112
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::WithAwsAccountId
UpdateDataSourcePermissionsRequest & WithAwsAccountId(Aws::String &&value)
Definition: UpdateDataSourcePermissionsRequest.h:70
AWSVector.h
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::AddRevokePermissions
UpdateDataSourcePermissionsRequest & AddRevokePermissions(ResourcePermission &&value)
Definition: UpdateDataSourcePermissionsRequest.h:214
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::UpdateDataSourcePermissionsRequest
UpdateDataSourcePermissionsRequest()
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::WithGrantPermissions
UpdateDataSourcePermissionsRequest & WithGrantPermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateDataSourcePermissionsRequest.h:150
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::WithRevokePermissions
UpdateDataSourcePermissionsRequest & WithRevokePermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateDataSourcePermissionsRequest.h:202
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::AddRevokePermissions
UpdateDataSourcePermissionsRequest & AddRevokePermissions(const ResourcePermission &value)
Definition: UpdateDataSourcePermissionsRequest.h:208
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::WithAwsAccountId
UpdateDataSourcePermissionsRequest & WithAwsAccountId(const Aws::String &value)
Definition: UpdateDataSourcePermissionsRequest.h:65
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::WithDataSourceId
UpdateDataSourcePermissionsRequest & WithDataSourceId(const char *value)
Definition: UpdateDataSourcePermissionsRequest.h:124
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateDataSourcePermissionsRequest.h:32
QuickSightRequest.h
Aws::QuickSight::Model::ResourcePermission
Definition: ResourcePermission.h:33
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::GetAwsAccountId
const Aws::String & GetAwsAccountId() const
Definition: UpdateDataSourcePermissionsRequest.h:40
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::RevokePermissionsHasBeenSet
bool RevokePermissionsHasBeenSet() const
Definition: UpdateDataSourcePermissionsRequest.h:178
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::SetRevokePermissions
void SetRevokePermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateDataSourcePermissionsRequest.h:190
ResourcePermission.h
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::SetGrantPermissions
void SetGrantPermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateDataSourcePermissionsRequest.h:140
AWSString.h
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::WithAwsAccountId
UpdateDataSourcePermissionsRequest & WithAwsAccountId(const char *value)
Definition: UpdateDataSourcePermissionsRequest.h:75
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::SetAwsAccountId
void SetAwsAccountId(Aws::String &&value)
Definition: UpdateDataSourcePermissionsRequest.h:55
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::GrantPermissionsHasBeenSet
bool GrantPermissionsHasBeenSet() const
Definition: UpdateDataSourcePermissionsRequest.h:135
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::SetRevokePermissions
void SetRevokePermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateDataSourcePermissionsRequest.h:184
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::SetAwsAccountId
void SetAwsAccountId(const Aws::String &value)
Definition: UpdateDataSourcePermissionsRequest.h:50
AWS_QUICKSIGHT_API
#define AWS_QUICKSIGHT_API
Definition: QuickSight_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::WithGrantPermissions
UpdateDataSourcePermissionsRequest & WithGrantPermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateDataSourcePermissionsRequest.h:155
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::WithRevokePermissions
UpdateDataSourcePermissionsRequest & WithRevokePermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateDataSourcePermissionsRequest.h:196
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::GetRevokePermissions
const Aws::Vector< ResourcePermission > & GetRevokePermissions() const
Definition: UpdateDataSourcePermissionsRequest.h:172
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::WithDataSourceId
UpdateDataSourcePermissionsRequest & WithDataSourceId(Aws::String &&value)
Definition: UpdateDataSourcePermissionsRequest.h:118
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::GetDataSourceId
const Aws::String & GetDataSourceId() const
Definition: UpdateDataSourcePermissionsRequest.h:82
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::SetDataSourceId
void SetDataSourceId(const char *value)
Definition: UpdateDataSourcePermissionsRequest.h:106
Aws::QuickSight::QuickSightRequest
Definition: QuickSightRequest.h:17
Aws::QuickSight::Model::UpdateDataSourcePermissionsRequest::DataSourceIdHasBeenSet
bool DataSourceIdHasBeenSet() const
Definition: UpdateDataSourcePermissionsRequest.h:88