AWS SDK for C++  1.9.20
AWS SDK for C++
UpdateAccessPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace IoTSiteWise
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "UpdateAccessPolicy"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetAccessPolicyId() const{ return m_accessPolicyId; }
43 
47  inline bool AccessPolicyIdHasBeenSet() const { return m_accessPolicyIdHasBeenSet; }
48 
52  inline void SetAccessPolicyId(const Aws::String& value) { m_accessPolicyIdHasBeenSet = true; m_accessPolicyId = value; }
53 
57  inline void SetAccessPolicyId(Aws::String&& value) { m_accessPolicyIdHasBeenSet = true; m_accessPolicyId = std::move(value); }
58 
62  inline void SetAccessPolicyId(const char* value) { m_accessPolicyIdHasBeenSet = true; m_accessPolicyId.assign(value); }
63 
67  inline UpdateAccessPolicyRequest& WithAccessPolicyId(const Aws::String& value) { SetAccessPolicyId(value); return *this;}
68 
72  inline UpdateAccessPolicyRequest& WithAccessPolicyId(Aws::String&& value) { SetAccessPolicyId(std::move(value)); return *this;}
73 
77  inline UpdateAccessPolicyRequest& WithAccessPolicyId(const char* value) { SetAccessPolicyId(value); return *this;}
78 
79 
84  inline const Identity& GetAccessPolicyIdentity() const{ return m_accessPolicyIdentity; }
85 
90  inline bool AccessPolicyIdentityHasBeenSet() const { return m_accessPolicyIdentityHasBeenSet; }
91 
96  inline void SetAccessPolicyIdentity(const Identity& value) { m_accessPolicyIdentityHasBeenSet = true; m_accessPolicyIdentity = value; }
97 
102  inline void SetAccessPolicyIdentity(Identity&& value) { m_accessPolicyIdentityHasBeenSet = true; m_accessPolicyIdentity = std::move(value); }
103 
108  inline UpdateAccessPolicyRequest& WithAccessPolicyIdentity(const Identity& value) { SetAccessPolicyIdentity(value); return *this;}
109 
114  inline UpdateAccessPolicyRequest& WithAccessPolicyIdentity(Identity&& value) { SetAccessPolicyIdentity(std::move(value)); return *this;}
115 
116 
121  inline const Resource& GetAccessPolicyResource() const{ return m_accessPolicyResource; }
122 
127  inline bool AccessPolicyResourceHasBeenSet() const { return m_accessPolicyResourceHasBeenSet; }
128 
133  inline void SetAccessPolicyResource(const Resource& value) { m_accessPolicyResourceHasBeenSet = true; m_accessPolicyResource = value; }
134 
139  inline void SetAccessPolicyResource(Resource&& value) { m_accessPolicyResourceHasBeenSet = true; m_accessPolicyResource = std::move(value); }
140 
145  inline UpdateAccessPolicyRequest& WithAccessPolicyResource(const Resource& value) { SetAccessPolicyResource(value); return *this;}
146 
151  inline UpdateAccessPolicyRequest& WithAccessPolicyResource(Resource&& value) { SetAccessPolicyResource(std::move(value)); return *this;}
152 
153 
158  inline const Permission& GetAccessPolicyPermission() const{ return m_accessPolicyPermission; }
159 
164  inline bool AccessPolicyPermissionHasBeenSet() const { return m_accessPolicyPermissionHasBeenSet; }
165 
170  inline void SetAccessPolicyPermission(const Permission& value) { m_accessPolicyPermissionHasBeenSet = true; m_accessPolicyPermission = value; }
171 
176  inline void SetAccessPolicyPermission(Permission&& value) { m_accessPolicyPermissionHasBeenSet = true; m_accessPolicyPermission = std::move(value); }
177 
182  inline UpdateAccessPolicyRequest& WithAccessPolicyPermission(const Permission& value) { SetAccessPolicyPermission(value); return *this;}
183 
188  inline UpdateAccessPolicyRequest& WithAccessPolicyPermission(Permission&& value) { SetAccessPolicyPermission(std::move(value)); return *this;}
189 
190 
196  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
197 
203  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
204 
210  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
211 
217  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
218 
224  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
225 
231  inline UpdateAccessPolicyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
232 
238  inline UpdateAccessPolicyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
239 
245  inline UpdateAccessPolicyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
246 
247  private:
248 
249  Aws::String m_accessPolicyId;
250  bool m_accessPolicyIdHasBeenSet;
251 
252  Identity m_accessPolicyIdentity;
253  bool m_accessPolicyIdentityHasBeenSet;
254 
255  Resource m_accessPolicyResource;
256  bool m_accessPolicyResourceHasBeenSet;
257 
258  Permission m_accessPolicyPermission;
259  bool m_accessPolicyPermissionHasBeenSet;
260 
261  Aws::String m_clientToken;
262  bool m_clientTokenHasBeenSet;
263  };
264 
265 } // namespace Model
266 } // namespace IoTSiteWise
267 } // namespace Aws
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::WithAccessPolicyId
UpdateAccessPolicyRequest & WithAccessPolicyId(const Aws::String &value)
Definition: UpdateAccessPolicyRequest.h:67
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: UpdateAccessPolicyRequest.h:196
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::SetAccessPolicyResource
void SetAccessPolicyResource(Resource &&value)
Definition: UpdateAccessPolicyRequest.h:139
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::SetAccessPolicyPermission
void SetAccessPolicyPermission(Permission &&value)
Definition: UpdateAccessPolicyRequest.h:176
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::WithAccessPolicyResource
UpdateAccessPolicyRequest & WithAccessPolicyResource(Resource &&value)
Definition: UpdateAccessPolicyRequest.h:151
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::GetAccessPolicyResource
const Resource & GetAccessPolicyResource() const
Definition: UpdateAccessPolicyRequest.h:121
Permission.h
Resource.h
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: UpdateAccessPolicyRequest.h:210
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::WithAccessPolicyPermission
UpdateAccessPolicyRequest & WithAccessPolicyPermission(Permission &&value)
Definition: UpdateAccessPolicyRequest.h:188
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::WithAccessPolicyResource
UpdateAccessPolicyRequest & WithAccessPolicyResource(const Resource &value)
Definition: UpdateAccessPolicyRequest.h:145
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::AccessPolicyIdHasBeenSet
bool AccessPolicyIdHasBeenSet() const
Definition: UpdateAccessPolicyRequest.h:47
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::WithAccessPolicyId
UpdateAccessPolicyRequest & WithAccessPolicyId(Aws::String &&value)
Definition: UpdateAccessPolicyRequest.h:72
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::AccessPolicyPermissionHasBeenSet
bool AccessPolicyPermissionHasBeenSet() const
Definition: UpdateAccessPolicyRequest.h:164
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::WithAccessPolicyPermission
UpdateAccessPolicyRequest & WithAccessPolicyPermission(const Permission &value)
Definition: UpdateAccessPolicyRequest.h:182
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::WithClientToken
UpdateAccessPolicyRequest & WithClientToken(const char *value)
Definition: UpdateAccessPolicyRequest.h:245
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: UpdateAccessPolicyRequest.h:203
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::AccessPolicyIdentityHasBeenSet
bool AccessPolicyIdentityHasBeenSet() const
Definition: UpdateAccessPolicyRequest.h:90
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::GetAccessPolicyId
const Aws::String & GetAccessPolicyId() const
Definition: UpdateAccessPolicyRequest.h:42
Identity.h
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::GetAccessPolicyIdentity
const Identity & GetAccessPolicyIdentity() const
Definition: UpdateAccessPolicyRequest.h:84
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::UpdateAccessPolicyRequest
UpdateAccessPolicyRequest()
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::SetAccessPolicyId
void SetAccessPolicyId(const Aws::String &value)
Definition: UpdateAccessPolicyRequest.h:52
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::WithAccessPolicyIdentity
UpdateAccessPolicyRequest & WithAccessPolicyIdentity(const Identity &value)
Definition: UpdateAccessPolicyRequest.h:108
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::WithClientToken
UpdateAccessPolicyRequest & WithClientToken(Aws::String &&value)
Definition: UpdateAccessPolicyRequest.h:238
AWSString.h
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::SetAccessPolicyIdentity
void SetAccessPolicyIdentity(Identity &&value)
Definition: UpdateAccessPolicyRequest.h:102
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: UpdateAccessPolicyRequest.h:217
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::SetAccessPolicyId
void SetAccessPolicyId(Aws::String &&value)
Definition: UpdateAccessPolicyRequest.h:57
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::WithAccessPolicyIdentity
UpdateAccessPolicyRequest & WithAccessPolicyIdentity(Identity &&value)
Definition: UpdateAccessPolicyRequest.h:114
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::GetAccessPolicyPermission
const Permission & GetAccessPolicyPermission() const
Definition: UpdateAccessPolicyRequest.h:158
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest
Definition: UpdateAccessPolicyRequest.h:26
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::SetAccessPolicyId
void SetAccessPolicyId(const char *value)
Definition: UpdateAccessPolicyRequest.h:62
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
IoTSiteWiseRequest.h
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::SetAccessPolicyPermission
void SetAccessPolicyPermission(const Permission &value)
Definition: UpdateAccessPolicyRequest.h:170
Aws::IoTSiteWise::Model::Permission
Permission
Definition: Permission.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::Identity
Definition: Identity.h:39
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::SetAccessPolicyResource
void SetAccessPolicyResource(const Resource &value)
Definition: UpdateAccessPolicyRequest.h:133
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::WithClientToken
UpdateAccessPolicyRequest & WithClientToken(const Aws::String &value)
Definition: UpdateAccessPolicyRequest.h:231
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::WithAccessPolicyId
UpdateAccessPolicyRequest & WithAccessPolicyId(const char *value)
Definition: UpdateAccessPolicyRequest.h:77
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::SetClientToken
void SetClientToken(const char *value)
Definition: UpdateAccessPolicyRequest.h:224
Aws::IoTSiteWise::Model::Resource
Definition: Resource.h:34
UUID.h
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::AccessPolicyResourceHasBeenSet
bool AccessPolicyResourceHasBeenSet() const
Definition: UpdateAccessPolicyRequest.h:127
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::SetAccessPolicyIdentity
void SetAccessPolicyIdentity(const Identity &value)
Definition: UpdateAccessPolicyRequest.h:96
Aws::IoTSiteWise::Model::UpdateAccessPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateAccessPolicyRequest.h:34