AWS SDK for C++  1.9.46
AWS SDK for C++
UpdateTemplatePermissionsRequest.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 "UpdateTemplatePermissions"; }
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 UpdateTemplatePermissionsRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
66 
70  inline UpdateTemplatePermissionsRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
71 
75  inline UpdateTemplatePermissionsRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
76 
77 
81  inline const Aws::String& GetTemplateId() const{ return m_templateId; }
82 
86  inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; }
87 
91  inline void SetTemplateId(const Aws::String& value) { m_templateIdHasBeenSet = true; m_templateId = value; }
92 
96  inline void SetTemplateId(Aws::String&& value) { m_templateIdHasBeenSet = true; m_templateId = std::move(value); }
97 
101  inline void SetTemplateId(const char* value) { m_templateIdHasBeenSet = true; m_templateId.assign(value); }
102 
106  inline UpdateTemplatePermissionsRequest& WithTemplateId(const Aws::String& value) { SetTemplateId(value); return *this;}
107 
111  inline UpdateTemplatePermissionsRequest& WithTemplateId(Aws::String&& value) { SetTemplateId(std::move(value)); return *this;}
112 
116  inline UpdateTemplatePermissionsRequest& WithTemplateId(const char* value) { SetTemplateId(value); return *this;}
117 
118 
122  inline const Aws::Vector<ResourcePermission>& GetGrantPermissions() const{ return m_grantPermissions; }
123 
127  inline bool GrantPermissionsHasBeenSet() const { return m_grantPermissionsHasBeenSet; }
128 
132  inline void SetGrantPermissions(const Aws::Vector<ResourcePermission>& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions = value; }
133 
137  inline void SetGrantPermissions(Aws::Vector<ResourcePermission>&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions = std::move(value); }
138 
142  inline UpdateTemplatePermissionsRequest& WithGrantPermissions(const Aws::Vector<ResourcePermission>& value) { SetGrantPermissions(value); return *this;}
143 
147  inline UpdateTemplatePermissionsRequest& WithGrantPermissions(Aws::Vector<ResourcePermission>&& value) { SetGrantPermissions(std::move(value)); return *this;}
148 
152  inline UpdateTemplatePermissionsRequest& AddGrantPermissions(const ResourcePermission& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(value); return *this; }
153 
157  inline UpdateTemplatePermissionsRequest& AddGrantPermissions(ResourcePermission&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(std::move(value)); return *this; }
158 
159 
163  inline const Aws::Vector<ResourcePermission>& GetRevokePermissions() const{ return m_revokePermissions; }
164 
168  inline bool RevokePermissionsHasBeenSet() const { return m_revokePermissionsHasBeenSet; }
169 
173  inline void SetRevokePermissions(const Aws::Vector<ResourcePermission>& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = value; }
174 
178  inline void SetRevokePermissions(Aws::Vector<ResourcePermission>&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = std::move(value); }
179 
183  inline UpdateTemplatePermissionsRequest& WithRevokePermissions(const Aws::Vector<ResourcePermission>& value) { SetRevokePermissions(value); return *this;}
184 
188  inline UpdateTemplatePermissionsRequest& WithRevokePermissions(Aws::Vector<ResourcePermission>&& value) { SetRevokePermissions(std::move(value)); return *this;}
189 
193  inline UpdateTemplatePermissionsRequest& AddRevokePermissions(const ResourcePermission& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(value); return *this; }
194 
198  inline UpdateTemplatePermissionsRequest& AddRevokePermissions(ResourcePermission&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(std::move(value)); return *this; }
199 
200  private:
201 
202  Aws::String m_awsAccountId;
203  bool m_awsAccountIdHasBeenSet;
204 
205  Aws::String m_templateId;
206  bool m_templateIdHasBeenSet;
207 
208  Aws::Vector<ResourcePermission> m_grantPermissions;
209  bool m_grantPermissionsHasBeenSet;
210 
211  Aws::Vector<ResourcePermission> m_revokePermissions;
212  bool m_revokePermissionsHasBeenSet;
213  };
214 
215 } // namespace Model
216 } // namespace QuickSight
217 } // namespace Aws
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::AddRevokePermissions
UpdateTemplatePermissionsRequest & AddRevokePermissions(ResourcePermission &&value)
Definition: UpdateTemplatePermissionsRequest.h:198
QuickSight_EXPORTS.h
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::SetAwsAccountId
void SetAwsAccountId(const Aws::String &value)
Definition: UpdateTemplatePermissionsRequest.h:50
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::AddRevokePermissions
UpdateTemplatePermissionsRequest & AddRevokePermissions(const ResourcePermission &value)
Definition: UpdateTemplatePermissionsRequest.h:193
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::WithGrantPermissions
UpdateTemplatePermissionsRequest & WithGrantPermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateTemplatePermissionsRequest.h:147
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::GetTemplateId
const Aws::String & GetTemplateId() const
Definition: UpdateTemplatePermissionsRequest.h:81
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::SetAwsAccountId
void SetAwsAccountId(Aws::String &&value)
Definition: UpdateTemplatePermissionsRequest.h:55
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::SetTemplateId
void SetTemplateId(const Aws::String &value)
Definition: UpdateTemplatePermissionsRequest.h:91
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::SetGrantPermissions
void SetGrantPermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateTemplatePermissionsRequest.h:132
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::WithRevokePermissions
UpdateTemplatePermissionsRequest & WithRevokePermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateTemplatePermissionsRequest.h:188
AWSVector.h
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::GrantPermissionsHasBeenSet
bool GrantPermissionsHasBeenSet() const
Definition: UpdateTemplatePermissionsRequest.h:127
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::WithRevokePermissions
UpdateTemplatePermissionsRequest & WithRevokePermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateTemplatePermissionsRequest.h:183
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::WithGrantPermissions
UpdateTemplatePermissionsRequest & WithGrantPermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateTemplatePermissionsRequest.h:142
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::WithTemplateId
UpdateTemplatePermissionsRequest & WithTemplateId(Aws::String &&value)
Definition: UpdateTemplatePermissionsRequest.h:111
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::SetAwsAccountId
void SetAwsAccountId(const char *value)
Definition: UpdateTemplatePermissionsRequest.h:60
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::RevokePermissionsHasBeenSet
bool RevokePermissionsHasBeenSet() const
Definition: UpdateTemplatePermissionsRequest.h:168
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::AddGrantPermissions
UpdateTemplatePermissionsRequest & AddGrantPermissions(const ResourcePermission &value)
Definition: UpdateTemplatePermissionsRequest.h:152
QuickSightRequest.h
Aws::QuickSight::Model::ResourcePermission
Definition: ResourcePermission.h:33
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::TemplateIdHasBeenSet
bool TemplateIdHasBeenSet() const
Definition: UpdateTemplatePermissionsRequest.h:86
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::GetGrantPermissions
const Aws::Vector< ResourcePermission > & GetGrantPermissions() const
Definition: UpdateTemplatePermissionsRequest.h:122
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::GetRevokePermissions
const Aws::Vector< ResourcePermission > & GetRevokePermissions() const
Definition: UpdateTemplatePermissionsRequest.h:163
ResourcePermission.h
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::SetRevokePermissions
void SetRevokePermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateTemplatePermissionsRequest.h:178
AWSString.h
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest
Definition: UpdateTemplatePermissionsRequest.h:24
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateTemplatePermissionsRequest.h:32
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::SetTemplateId
void SetTemplateId(Aws::String &&value)
Definition: UpdateTemplatePermissionsRequest.h:96
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::WithTemplateId
UpdateTemplatePermissionsRequest & WithTemplateId(const char *value)
Definition: UpdateTemplatePermissionsRequest.h:116
AWS_QUICKSIGHT_API
#define AWS_QUICKSIGHT_API
Definition: QuickSight_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::WithAwsAccountId
UpdateTemplatePermissionsRequest & WithAwsAccountId(Aws::String &&value)
Definition: UpdateTemplatePermissionsRequest.h:70
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::WithTemplateId
UpdateTemplatePermissionsRequest & WithTemplateId(const Aws::String &value)
Definition: UpdateTemplatePermissionsRequest.h:106
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::UpdateTemplatePermissionsRequest
UpdateTemplatePermissionsRequest()
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::AwsAccountIdHasBeenSet
bool AwsAccountIdHasBeenSet() const
Definition: UpdateTemplatePermissionsRequest.h:45
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::WithAwsAccountId
UpdateTemplatePermissionsRequest & WithAwsAccountId(const char *value)
Definition: UpdateTemplatePermissionsRequest.h:75
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::WithAwsAccountId
UpdateTemplatePermissionsRequest & WithAwsAccountId(const Aws::String &value)
Definition: UpdateTemplatePermissionsRequest.h:65
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::SetRevokePermissions
void SetRevokePermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateTemplatePermissionsRequest.h:173
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::SetGrantPermissions
void SetGrantPermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateTemplatePermissionsRequest.h:137
Aws::QuickSight::QuickSightRequest
Definition: QuickSightRequest.h:17
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::GetAwsAccountId
const Aws::String & GetAwsAccountId() const
Definition: UpdateTemplatePermissionsRequest.h:40
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::SetTemplateId
void SetTemplateId(const char *value)
Definition: UpdateTemplatePermissionsRequest.h:101
Aws::QuickSight::Model::UpdateTemplatePermissionsRequest::AddGrantPermissions
UpdateTemplatePermissionsRequest & AddGrantPermissions(ResourcePermission &&value)
Definition: UpdateTemplatePermissionsRequest.h:157