AWS SDK for C++  1.9.46
AWS SDK for C++
UpdateDataSetPermissionsRequest.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 "UpdateDataSetPermissions"; }
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 UpdateDataSetPermissionsRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
66 
70  inline UpdateDataSetPermissionsRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
71 
75  inline UpdateDataSetPermissionsRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
76 
77 
82  inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
83 
88  inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
89 
94  inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
95 
100  inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
101 
106  inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
107 
112  inline UpdateDataSetPermissionsRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
113 
118  inline UpdateDataSetPermissionsRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
119 
124  inline UpdateDataSetPermissionsRequest& WithDataSetId(const char* value) { SetDataSetId(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 UpdateDataSetPermissionsRequest& WithGrantPermissions(const Aws::Vector<ResourcePermission>& value) { SetGrantPermissions(value); return *this;}
151 
155  inline UpdateDataSetPermissionsRequest& WithGrantPermissions(Aws::Vector<ResourcePermission>&& value) { SetGrantPermissions(std::move(value)); return *this;}
156 
160  inline UpdateDataSetPermissionsRequest& AddGrantPermissions(const ResourcePermission& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(value); return *this; }
161 
165  inline UpdateDataSetPermissionsRequest& 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 UpdateDataSetPermissionsRequest& WithRevokePermissions(const Aws::Vector<ResourcePermission>& value) { SetRevokePermissions(value); return *this;}
192 
196  inline UpdateDataSetPermissionsRequest& WithRevokePermissions(Aws::Vector<ResourcePermission>&& value) { SetRevokePermissions(std::move(value)); return *this;}
197 
201  inline UpdateDataSetPermissionsRequest& AddRevokePermissions(const ResourcePermission& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(value); return *this; }
202 
206  inline UpdateDataSetPermissionsRequest& 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_dataSetId;
214  bool m_dataSetIdHasBeenSet;
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::UpdateDataSetPermissionsRequest::WithDataSetId
UpdateDataSetPermissionsRequest & WithDataSetId(Aws::String &&value)
Definition: UpdateDataSetPermissionsRequest.h:118
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::WithRevokePermissions
UpdateDataSetPermissionsRequest & WithRevokePermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateDataSetPermissionsRequest.h:196
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::WithAwsAccountId
UpdateDataSetPermissionsRequest & WithAwsAccountId(const char *value)
Definition: UpdateDataSetPermissionsRequest.h:75
QuickSight_EXPORTS.h
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::AddRevokePermissions
UpdateDataSetPermissionsRequest & AddRevokePermissions(ResourcePermission &&value)
Definition: UpdateDataSetPermissionsRequest.h:206
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::SetAwsAccountId
void SetAwsAccountId(const char *value)
Definition: UpdateDataSetPermissionsRequest.h:60
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::WithDataSetId
UpdateDataSetPermissionsRequest & WithDataSetId(const char *value)
Definition: UpdateDataSetPermissionsRequest.h:124
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::SetGrantPermissions
void SetGrantPermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateDataSetPermissionsRequest.h:140
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::GetGrantPermissions
const Aws::Vector< ResourcePermission > & GetGrantPermissions() const
Definition: UpdateDataSetPermissionsRequest.h:130
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::GetAwsAccountId
const Aws::String & GetAwsAccountId() const
Definition: UpdateDataSetPermissionsRequest.h:40
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::WithGrantPermissions
UpdateDataSetPermissionsRequest & WithGrantPermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateDataSetPermissionsRequest.h:155
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::WithAwsAccountId
UpdateDataSetPermissionsRequest & WithAwsAccountId(Aws::String &&value)
Definition: UpdateDataSetPermissionsRequest.h:70
AWSVector.h
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::SetGrantPermissions
void SetGrantPermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateDataSetPermissionsRequest.h:145
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::DataSetIdHasBeenSet
bool DataSetIdHasBeenSet() const
Definition: UpdateDataSetPermissionsRequest.h:88
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::SetRevokePermissions
void SetRevokePermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateDataSetPermissionsRequest.h:181
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::RevokePermissionsHasBeenSet
bool RevokePermissionsHasBeenSet() const
Definition: UpdateDataSetPermissionsRequest.h:176
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::GetRevokePermissions
const Aws::Vector< ResourcePermission > & GetRevokePermissions() const
Definition: UpdateDataSetPermissionsRequest.h:171
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateDataSetPermissionsRequest.h:32
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::WithAwsAccountId
UpdateDataSetPermissionsRequest & WithAwsAccountId(const Aws::String &value)
Definition: UpdateDataSetPermissionsRequest.h:65
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::AddRevokePermissions
UpdateDataSetPermissionsRequest & AddRevokePermissions(const ResourcePermission &value)
Definition: UpdateDataSetPermissionsRequest.h:201
QuickSightRequest.h
Aws::QuickSight::Model::ResourcePermission
Definition: ResourcePermission.h:33
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::SetAwsAccountId
void SetAwsAccountId(Aws::String &&value)
Definition: UpdateDataSetPermissionsRequest.h:55
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::SetAwsAccountId
void SetAwsAccountId(const Aws::String &value)
Definition: UpdateDataSetPermissionsRequest.h:50
ResourcePermission.h
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::WithRevokePermissions
UpdateDataSetPermissionsRequest & WithRevokePermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateDataSetPermissionsRequest.h:191
AWSString.h
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest
Definition: UpdateDataSetPermissionsRequest.h:24
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::WithDataSetId
UpdateDataSetPermissionsRequest & WithDataSetId(const Aws::String &value)
Definition: UpdateDataSetPermissionsRequest.h:112
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::GetDataSetId
const Aws::String & GetDataSetId() const
Definition: UpdateDataSetPermissionsRequest.h:82
AWS_QUICKSIGHT_API
#define AWS_QUICKSIGHT_API
Definition: QuickSight_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::WithGrantPermissions
UpdateDataSetPermissionsRequest & WithGrantPermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateDataSetPermissionsRequest.h:150
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::GrantPermissionsHasBeenSet
bool GrantPermissionsHasBeenSet() const
Definition: UpdateDataSetPermissionsRequest.h:135
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::UpdateDataSetPermissionsRequest
UpdateDataSetPermissionsRequest()
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::AddGrantPermissions
UpdateDataSetPermissionsRequest & AddGrantPermissions(const ResourcePermission &value)
Definition: UpdateDataSetPermissionsRequest.h:160
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::SetRevokePermissions
void SetRevokePermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateDataSetPermissionsRequest.h:186
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::SetDataSetId
void SetDataSetId(Aws::String &&value)
Definition: UpdateDataSetPermissionsRequest.h:100
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::AwsAccountIdHasBeenSet
bool AwsAccountIdHasBeenSet() const
Definition: UpdateDataSetPermissionsRequest.h:45
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::AddGrantPermissions
UpdateDataSetPermissionsRequest & AddGrantPermissions(ResourcePermission &&value)
Definition: UpdateDataSetPermissionsRequest.h:165
Aws::QuickSight::QuickSightRequest
Definition: QuickSightRequest.h:17
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::SetDataSetId
void SetDataSetId(const char *value)
Definition: UpdateDataSetPermissionsRequest.h:106
Aws::QuickSight::Model::UpdateDataSetPermissionsRequest::SetDataSetId
void SetDataSetId(const Aws::String &value)
Definition: UpdateDataSetPermissionsRequest.h:94