AWS SDK for C++  1.9.44
AWS SDK for C++
UpdateThemePermissionsRequest.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 "UpdateThemePermissions"; }
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 UpdateThemePermissionsRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
66 
70  inline UpdateThemePermissionsRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
71 
75  inline UpdateThemePermissionsRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
76 
77 
81  inline const Aws::String& GetThemeId() const{ return m_themeId; }
82 
86  inline bool ThemeIdHasBeenSet() const { return m_themeIdHasBeenSet; }
87 
91  inline void SetThemeId(const Aws::String& value) { m_themeIdHasBeenSet = true; m_themeId = value; }
92 
96  inline void SetThemeId(Aws::String&& value) { m_themeIdHasBeenSet = true; m_themeId = std::move(value); }
97 
101  inline void SetThemeId(const char* value) { m_themeIdHasBeenSet = true; m_themeId.assign(value); }
102 
106  inline UpdateThemePermissionsRequest& WithThemeId(const Aws::String& value) { SetThemeId(value); return *this;}
107 
111  inline UpdateThemePermissionsRequest& WithThemeId(Aws::String&& value) { SetThemeId(std::move(value)); return *this;}
112 
116  inline UpdateThemePermissionsRequest& WithThemeId(const char* value) { SetThemeId(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 UpdateThemePermissionsRequest& WithGrantPermissions(const Aws::Vector<ResourcePermission>& value) { SetGrantPermissions(value); return *this;}
143 
147  inline UpdateThemePermissionsRequest& WithGrantPermissions(Aws::Vector<ResourcePermission>&& value) { SetGrantPermissions(std::move(value)); return *this;}
148 
152  inline UpdateThemePermissionsRequest& AddGrantPermissions(const ResourcePermission& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(value); return *this; }
153 
157  inline UpdateThemePermissionsRequest& 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 UpdateThemePermissionsRequest& WithRevokePermissions(const Aws::Vector<ResourcePermission>& value) { SetRevokePermissions(value); return *this;}
184 
188  inline UpdateThemePermissionsRequest& WithRevokePermissions(Aws::Vector<ResourcePermission>&& value) { SetRevokePermissions(std::move(value)); return *this;}
189 
193  inline UpdateThemePermissionsRequest& AddRevokePermissions(const ResourcePermission& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(value); return *this; }
194 
198  inline UpdateThemePermissionsRequest& 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_themeId;
206  bool m_themeIdHasBeenSet;
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::UpdateThemePermissionsRequest::WithAwsAccountId
UpdateThemePermissionsRequest & WithAwsAccountId(const Aws::String &value)
Definition: UpdateThemePermissionsRequest.h:65
Aws::QuickSight::Model::UpdateThemePermissionsRequest::WithAwsAccountId
UpdateThemePermissionsRequest & WithAwsAccountId(Aws::String &&value)
Definition: UpdateThemePermissionsRequest.h:70
Aws::QuickSight::Model::UpdateThemePermissionsRequest::WithThemeId
UpdateThemePermissionsRequest & WithThemeId(const Aws::String &value)
Definition: UpdateThemePermissionsRequest.h:106
QuickSight_EXPORTS.h
Aws::QuickSight::Model::UpdateThemePermissionsRequest::SetThemeId
void SetThemeId(const char *value)
Definition: UpdateThemePermissionsRequest.h:101
Aws::QuickSight::Model::UpdateThemePermissionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::QuickSight::Model::UpdateThemePermissionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateThemePermissionsRequest.h:32
Aws::QuickSight::Model::UpdateThemePermissionsRequest::GetGrantPermissions
const Aws::Vector< ResourcePermission > & GetGrantPermissions() const
Definition: UpdateThemePermissionsRequest.h:122
Aws::QuickSight::Model::UpdateThemePermissionsRequest::GrantPermissionsHasBeenSet
bool GrantPermissionsHasBeenSet() const
Definition: UpdateThemePermissionsRequest.h:127
Aws::QuickSight::Model::UpdateThemePermissionsRequest::AddGrantPermissions
UpdateThemePermissionsRequest & AddGrantPermissions(ResourcePermission &&value)
Definition: UpdateThemePermissionsRequest.h:157
Aws::QuickSight::Model::UpdateThemePermissionsRequest::WithGrantPermissions
UpdateThemePermissionsRequest & WithGrantPermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateThemePermissionsRequest.h:147
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::QuickSight::Model::UpdateThemePermissionsRequest::SetRevokePermissions
void SetRevokePermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateThemePermissionsRequest.h:178
Aws::QuickSight::Model::UpdateThemePermissionsRequest::GetRevokePermissions
const Aws::Vector< ResourcePermission > & GetRevokePermissions() const
Definition: UpdateThemePermissionsRequest.h:163
AWSVector.h
Aws::QuickSight::Model::UpdateThemePermissionsRequest::SetAwsAccountId
void SetAwsAccountId(const Aws::String &value)
Definition: UpdateThemePermissionsRequest.h:50
Aws::QuickSight::Model::UpdateThemePermissionsRequest::SetRevokePermissions
void SetRevokePermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateThemePermissionsRequest.h:173
Aws::QuickSight::Model::UpdateThemePermissionsRequest::SetGrantPermissions
void SetGrantPermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateThemePermissionsRequest.h:137
Aws::QuickSight::Model::UpdateThemePermissionsRequest
Definition: UpdateThemePermissionsRequest.h:24
Aws::QuickSight::Model::UpdateThemePermissionsRequest::SetAwsAccountId
void SetAwsAccountId(const char *value)
Definition: UpdateThemePermissionsRequest.h:60
Aws::QuickSight::Model::UpdateThemePermissionsRequest::AddGrantPermissions
UpdateThemePermissionsRequest & AddGrantPermissions(const ResourcePermission &value)
Definition: UpdateThemePermissionsRequest.h:152
QuickSightRequest.h
Aws::QuickSight::Model::ResourcePermission
Definition: ResourcePermission.h:33
Aws::QuickSight::Model::UpdateThemePermissionsRequest::GetThemeId
const Aws::String & GetThemeId() const
Definition: UpdateThemePermissionsRequest.h:81
Aws::QuickSight::Model::UpdateThemePermissionsRequest::GetAwsAccountId
const Aws::String & GetAwsAccountId() const
Definition: UpdateThemePermissionsRequest.h:40
Aws::QuickSight::Model::UpdateThemePermissionsRequest::AddRevokePermissions
UpdateThemePermissionsRequest & AddRevokePermissions(ResourcePermission &&value)
Definition: UpdateThemePermissionsRequest.h:198
ResourcePermission.h
Aws::QuickSight::Model::UpdateThemePermissionsRequest::WithGrantPermissions
UpdateThemePermissionsRequest & WithGrantPermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateThemePermissionsRequest.h:142
AWSString.h
Aws::QuickSight::Model::UpdateThemePermissionsRequest::SetGrantPermissions
void SetGrantPermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateThemePermissionsRequest.h:132
Aws::QuickSight::Model::UpdateThemePermissionsRequest::AwsAccountIdHasBeenSet
bool AwsAccountIdHasBeenSet() const
Definition: UpdateThemePermissionsRequest.h:45
Aws::QuickSight::Model::UpdateThemePermissionsRequest::SetThemeId
void SetThemeId(Aws::String &&value)
Definition: UpdateThemePermissionsRequest.h:96
Aws::QuickSight::Model::UpdateThemePermissionsRequest::WithThemeId
UpdateThemePermissionsRequest & WithThemeId(const char *value)
Definition: UpdateThemePermissionsRequest.h:116
Aws::QuickSight::Model::UpdateThemePermissionsRequest::WithRevokePermissions
UpdateThemePermissionsRequest & WithRevokePermissions(Aws::Vector< ResourcePermission > &&value)
Definition: UpdateThemePermissionsRequest.h:188
AWS_QUICKSIGHT_API
#define AWS_QUICKSIGHT_API
Definition: QuickSight_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::QuickSight::Model::UpdateThemePermissionsRequest::WithRevokePermissions
UpdateThemePermissionsRequest & WithRevokePermissions(const Aws::Vector< ResourcePermission > &value)
Definition: UpdateThemePermissionsRequest.h:183
Aws::QuickSight::Model::UpdateThemePermissionsRequest::RevokePermissionsHasBeenSet
bool RevokePermissionsHasBeenSet() const
Definition: UpdateThemePermissionsRequest.h:168
Aws::QuickSight::Model::UpdateThemePermissionsRequest::AddRevokePermissions
UpdateThemePermissionsRequest & AddRevokePermissions(const ResourcePermission &value)
Definition: UpdateThemePermissionsRequest.h:193
Aws::QuickSight::Model::UpdateThemePermissionsRequest::SetAwsAccountId
void SetAwsAccountId(Aws::String &&value)
Definition: UpdateThemePermissionsRequest.h:55
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::UpdateThemePermissionsRequest::WithAwsAccountId
UpdateThemePermissionsRequest & WithAwsAccountId(const char *value)
Definition: UpdateThemePermissionsRequest.h:75
Aws::QuickSight::Model::UpdateThemePermissionsRequest::WithThemeId
UpdateThemePermissionsRequest & WithThemeId(Aws::String &&value)
Definition: UpdateThemePermissionsRequest.h:111
Aws::QuickSight::QuickSightRequest
Definition: QuickSightRequest.h:17
Aws::QuickSight::Model::UpdateThemePermissionsRequest::ThemeIdHasBeenSet
bool ThemeIdHasBeenSet() const
Definition: UpdateThemePermissionsRequest.h:86
Aws::QuickSight::Model::UpdateThemePermissionsRequest::UpdateThemePermissionsRequest
UpdateThemePermissionsRequest()
Aws::QuickSight::Model::UpdateThemePermissionsRequest::SetThemeId
void SetThemeId(const Aws::String &value)
Definition: UpdateThemePermissionsRequest.h:91