AWS SDK for C++  1.9.46
AWS SDK for C++
UpdateAnalysisPermissionsRequest.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 "UpdateAnalysisPermissions"; }
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 UpdateAnalysisPermissionsRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
72 
77  inline UpdateAnalysisPermissionsRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
78 
83  inline UpdateAnalysisPermissionsRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
84 
85 
90  inline const Aws::String& GetAnalysisId() const{ return m_analysisId; }
91 
96  inline bool AnalysisIdHasBeenSet() const { return m_analysisIdHasBeenSet; }
97 
102  inline void SetAnalysisId(const Aws::String& value) { m_analysisIdHasBeenSet = true; m_analysisId = value; }
103 
108  inline void SetAnalysisId(Aws::String&& value) { m_analysisIdHasBeenSet = true; m_analysisId = std::move(value); }
109 
114  inline void SetAnalysisId(const char* value) { m_analysisIdHasBeenSet = true; m_analysisId.assign(value); }
115 
120  inline UpdateAnalysisPermissionsRequest& WithAnalysisId(const Aws::String& value) { SetAnalysisId(value); return *this;}
121 
126  inline UpdateAnalysisPermissionsRequest& WithAnalysisId(Aws::String&& value) { SetAnalysisId(std::move(value)); return *this;}
127 
132  inline UpdateAnalysisPermissionsRequest& WithAnalysisId(const char* value) { SetAnalysisId(value); return *this;}
133 
134 
139  inline const Aws::Vector<ResourcePermission>& GetGrantPermissions() const{ return m_grantPermissions; }
140 
145  inline bool GrantPermissionsHasBeenSet() const { return m_grantPermissionsHasBeenSet; }
146 
151  inline void SetGrantPermissions(const Aws::Vector<ResourcePermission>& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions = value; }
152 
157  inline void SetGrantPermissions(Aws::Vector<ResourcePermission>&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions = std::move(value); }
158 
163  inline UpdateAnalysisPermissionsRequest& WithGrantPermissions(const Aws::Vector<ResourcePermission>& value) { SetGrantPermissions(value); return *this;}
164 
169  inline UpdateAnalysisPermissionsRequest& WithGrantPermissions(Aws::Vector<ResourcePermission>&& value) { SetGrantPermissions(std::move(value)); return *this;}
170 
175  inline UpdateAnalysisPermissionsRequest& AddGrantPermissions(const ResourcePermission& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(value); return *this; }
176 
181  inline UpdateAnalysisPermissionsRequest& AddGrantPermissions(ResourcePermission&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(std::move(value)); return *this; }
182 
183 
188  inline const Aws::Vector<ResourcePermission>& GetRevokePermissions() const{ return m_revokePermissions; }
189 
194  inline bool RevokePermissionsHasBeenSet() const { return m_revokePermissionsHasBeenSet; }
195 
200  inline void SetRevokePermissions(const Aws::Vector<ResourcePermission>& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = value; }
201 
206  inline void SetRevokePermissions(Aws::Vector<ResourcePermission>&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = std::move(value); }
207 
212  inline UpdateAnalysisPermissionsRequest& WithRevokePermissions(const Aws::Vector<ResourcePermission>& value) { SetRevokePermissions(value); return *this;}
213 
218  inline UpdateAnalysisPermissionsRequest& WithRevokePermissions(Aws::Vector<ResourcePermission>&& value) { SetRevokePermissions(std::move(value)); return *this;}
219 
224  inline UpdateAnalysisPermissionsRequest& AddRevokePermissions(const ResourcePermission& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(value); return *this; }
225 
230  inline UpdateAnalysisPermissionsRequest& AddRevokePermissions(ResourcePermission&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(std::move(value)); return *this; }
231 
232  private:
233 
234  Aws::String m_awsAccountId;
235  bool m_awsAccountIdHasBeenSet;
236 
237  Aws::String m_analysisId;
238  bool m_analysisIdHasBeenSet;
239 
240  Aws::Vector<ResourcePermission> m_grantPermissions;
241  bool m_grantPermissionsHasBeenSet;
242 
243  Aws::Vector<ResourcePermission> m_revokePermissions;
244  bool m_revokePermissionsHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace QuickSight
249 } // namespace Aws
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::GetAwsAccountId
const Aws::String & GetAwsAccountId() const
Definition: UpdateAnalysisPermissionsRequest.h:41
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::WithAnalysisId
UpdateAnalysisPermissionsRequest & WithAnalysisId(const char *value)
Definition: UpdateAnalysisPermissionsRequest.h:132
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::SetRevokePermissions
void SetRevokePermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateAnalysisPermissionsRequest.h:200
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::AddGrantPermissions
UpdateAnalysisPermissionsRequest & AddGrantPermissions(const ResourcePermission &value)
Definition: UpdateAnalysisPermissionsRequest.h:175
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::WithAwsAccountId
UpdateAnalysisPermissionsRequest & WithAwsAccountId(const char *value)
Definition: UpdateAnalysisPermissionsRequest.h:83
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::SetRevokePermissions
void SetRevokePermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateAnalysisPermissionsRequest.h:206
QuickSight_EXPORTS.h
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::SetAnalysisId
void SetAnalysisId(const char *value)
Definition: UpdateAnalysisPermissionsRequest.h:114
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::GrantPermissionsHasBeenSet
bool GrantPermissionsHasBeenSet() const
Definition: UpdateAnalysisPermissionsRequest.h:145
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::AddRevokePermissions
UpdateAnalysisPermissionsRequest & AddRevokePermissions(const ResourcePermission &value)
Definition: UpdateAnalysisPermissionsRequest.h:224
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::WithRevokePermissions
UpdateAnalysisPermissionsRequest & WithRevokePermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateAnalysisPermissionsRequest.h:218
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateAnalysisPermissionsRequest.h:32
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::GetGrantPermissions
const Aws::Vector< ResourcePermission > & GetGrantPermissions() const
Definition: UpdateAnalysisPermissionsRequest.h:139
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::WithAwsAccountId
UpdateAnalysisPermissionsRequest & WithAwsAccountId(const Aws::String &value)
Definition: UpdateAnalysisPermissionsRequest.h:71
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::AnalysisIdHasBeenSet
bool AnalysisIdHasBeenSet() const
Definition: UpdateAnalysisPermissionsRequest.h:96
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::WithAwsAccountId
UpdateAnalysisPermissionsRequest & WithAwsAccountId(Aws::String &&value)
Definition: UpdateAnalysisPermissionsRequest.h:77
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::AddGrantPermissions
UpdateAnalysisPermissionsRequest & AddGrantPermissions(ResourcePermission &&value)
Definition: UpdateAnalysisPermissionsRequest.h:181
AWSVector.h
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::SetAwsAccountId
void SetAwsAccountId(Aws::String &&value)
Definition: UpdateAnalysisPermissionsRequest.h:59
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::WithGrantPermissions
UpdateAnalysisPermissionsRequest & WithGrantPermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateAnalysisPermissionsRequest.h:169
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::SetAnalysisId
void SetAnalysisId(Aws::String &&value)
Definition: UpdateAnalysisPermissionsRequest.h:108
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::GetAnalysisId
const Aws::String & GetAnalysisId() const
Definition: UpdateAnalysisPermissionsRequest.h:90
QuickSightRequest.h
Aws::QuickSight::Model::ResourcePermission
Definition: ResourcePermission.h:33
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest
Definition: UpdateAnalysisPermissionsRequest.h:24
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::WithGrantPermissions
UpdateAnalysisPermissionsRequest & WithGrantPermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateAnalysisPermissionsRequest.h:163
ResourcePermission.h
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::SetAwsAccountId
void SetAwsAccountId(const Aws::String &value)
Definition: UpdateAnalysisPermissionsRequest.h:53
AWSString.h
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::WithAnalysisId
UpdateAnalysisPermissionsRequest & WithAnalysisId(const Aws::String &value)
Definition: UpdateAnalysisPermissionsRequest.h:120
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::GetRevokePermissions
const Aws::Vector< ResourcePermission > & GetRevokePermissions() const
Definition: UpdateAnalysisPermissionsRequest.h:188
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::WithAnalysisId
UpdateAnalysisPermissionsRequest & WithAnalysisId(Aws::String &&value)
Definition: UpdateAnalysisPermissionsRequest.h:126
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::SetAwsAccountId
void SetAwsAccountId(const char *value)
Definition: UpdateAnalysisPermissionsRequest.h:65
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::RevokePermissionsHasBeenSet
bool RevokePermissionsHasBeenSet() const
Definition: UpdateAnalysisPermissionsRequest.h:194
AWS_QUICKSIGHT_API
#define AWS_QUICKSIGHT_API
Definition: QuickSight_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::UpdateAnalysisPermissionsRequest
UpdateAnalysisPermissionsRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::AddRevokePermissions
UpdateAnalysisPermissionsRequest & AddRevokePermissions(ResourcePermission &&value)
Definition: UpdateAnalysisPermissionsRequest.h:230
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::AwsAccountIdHasBeenSet
bool AwsAccountIdHasBeenSet() const
Definition: UpdateAnalysisPermissionsRequest.h:47
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::WithRevokePermissions
UpdateAnalysisPermissionsRequest & WithRevokePermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateAnalysisPermissionsRequest.h:212
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::SetAnalysisId
void SetAnalysisId(const Aws::String &value)
Definition: UpdateAnalysisPermissionsRequest.h:102
Aws::QuickSight::QuickSightRequest
Definition: QuickSightRequest.h:17
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::SetGrantPermissions
void SetGrantPermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateAnalysisPermissionsRequest.h:157
Aws::QuickSight::Model::UpdateAnalysisPermissionsRequest::SetGrantPermissions
void SetGrantPermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateAnalysisPermissionsRequest.h:151