AWS SDK for C++  1.9.16
AWS SDK for C++
CreateAccessPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 #include <aws/core/utils/UUID.h>
16 
17 namespace Aws
18 {
19 namespace IoTSiteWise
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateAccessPolicy"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
44  inline const Identity& GetAccessPolicyIdentity() const{ return m_accessPolicyIdentity; }
45 
50  inline bool AccessPolicyIdentityHasBeenSet() const { return m_accessPolicyIdentityHasBeenSet; }
51 
56  inline void SetAccessPolicyIdentity(const Identity& value) { m_accessPolicyIdentityHasBeenSet = true; m_accessPolicyIdentity = value; }
57 
62  inline void SetAccessPolicyIdentity(Identity&& value) { m_accessPolicyIdentityHasBeenSet = true; m_accessPolicyIdentity = std::move(value); }
63 
68  inline CreateAccessPolicyRequest& WithAccessPolicyIdentity(const Identity& value) { SetAccessPolicyIdentity(value); return *this;}
69 
74  inline CreateAccessPolicyRequest& WithAccessPolicyIdentity(Identity&& value) { SetAccessPolicyIdentity(std::move(value)); return *this;}
75 
76 
81  inline const Resource& GetAccessPolicyResource() const{ return m_accessPolicyResource; }
82 
87  inline bool AccessPolicyResourceHasBeenSet() const { return m_accessPolicyResourceHasBeenSet; }
88 
93  inline void SetAccessPolicyResource(const Resource& value) { m_accessPolicyResourceHasBeenSet = true; m_accessPolicyResource = value; }
94 
99  inline void SetAccessPolicyResource(Resource&& value) { m_accessPolicyResourceHasBeenSet = true; m_accessPolicyResource = std::move(value); }
100 
105  inline CreateAccessPolicyRequest& WithAccessPolicyResource(const Resource& value) { SetAccessPolicyResource(value); return *this;}
106 
111  inline CreateAccessPolicyRequest& WithAccessPolicyResource(Resource&& value) { SetAccessPolicyResource(std::move(value)); return *this;}
112 
113 
118  inline const Permission& GetAccessPolicyPermission() const{ return m_accessPolicyPermission; }
119 
124  inline bool AccessPolicyPermissionHasBeenSet() const { return m_accessPolicyPermissionHasBeenSet; }
125 
130  inline void SetAccessPolicyPermission(const Permission& value) { m_accessPolicyPermissionHasBeenSet = true; m_accessPolicyPermission = value; }
131 
136  inline void SetAccessPolicyPermission(Permission&& value) { m_accessPolicyPermissionHasBeenSet = true; m_accessPolicyPermission = std::move(value); }
137 
142  inline CreateAccessPolicyRequest& WithAccessPolicyPermission(const Permission& value) { SetAccessPolicyPermission(value); return *this;}
143 
148  inline CreateAccessPolicyRequest& WithAccessPolicyPermission(Permission&& value) { SetAccessPolicyPermission(std::move(value)); return *this;}
149 
150 
156  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
157 
163  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
164 
170  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
171 
177  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
178 
184  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
185 
191  inline CreateAccessPolicyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
192 
198  inline CreateAccessPolicyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
199 
205  inline CreateAccessPolicyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
206 
207 
215  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
216 
224  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
225 
233  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
234 
242  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
243 
251  inline CreateAccessPolicyRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
252 
260  inline CreateAccessPolicyRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
261 
269  inline CreateAccessPolicyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
270 
278  inline CreateAccessPolicyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
279 
287  inline CreateAccessPolicyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
288 
296  inline CreateAccessPolicyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
297 
305  inline CreateAccessPolicyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
306 
314  inline CreateAccessPolicyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
315 
323  inline CreateAccessPolicyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
324 
325  private:
326 
327  Identity m_accessPolicyIdentity;
328  bool m_accessPolicyIdentityHasBeenSet;
329 
330  Resource m_accessPolicyResource;
331  bool m_accessPolicyResourceHasBeenSet;
332 
333  Permission m_accessPolicyPermission;
334  bool m_accessPolicyPermissionHasBeenSet;
335 
336  Aws::String m_clientToken;
337  bool m_clientTokenHasBeenSet;
338 
340  bool m_tagsHasBeenSet;
341  };
342 
343 } // namespace Model
344 } // namespace IoTSiteWise
345 } // namespace Aws
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest
Definition: CreateAccessPolicyRequest.h:27
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::GetAccessPolicyIdentity
const Identity & GetAccessPolicyIdentity() const
Definition: CreateAccessPolicyRequest.h:44
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateAccessPolicyRequest.h:233
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::WithTags
CreateAccessPolicyRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateAccessPolicyRequest.h:260
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::AddTags
CreateAccessPolicyRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateAccessPolicyRequest.h:269
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::WithAccessPolicyResource
CreateAccessPolicyRequest & WithAccessPolicyResource(Resource &&value)
Definition: CreateAccessPolicyRequest.h:111
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::AddTags
CreateAccessPolicyRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateAccessPolicyRequest.h:278
Permission.h
Resource.h
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::GetAccessPolicyResource
const Resource & GetAccessPolicyResource() const
Definition: CreateAccessPolicyRequest.h:81
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::AccessPolicyPermissionHasBeenSet
bool AccessPolicyPermissionHasBeenSet() const
Definition: CreateAccessPolicyRequest.h:124
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::SetAccessPolicyPermission
void SetAccessPolicyPermission(Permission &&value)
Definition: CreateAccessPolicyRequest.h:136
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::AddTags
CreateAccessPolicyRequest & AddTags(const char *key, const char *value)
Definition: CreateAccessPolicyRequest.h:323
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateAccessPolicyRequest.h:242
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateAccessPolicyRequest.h:184
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::WithAccessPolicyResource
CreateAccessPolicyRequest & WithAccessPolicyResource(const Resource &value)
Definition: CreateAccessPolicyRequest.h:105
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::WithAccessPolicyIdentity
CreateAccessPolicyRequest & WithAccessPolicyIdentity(Identity &&value)
Definition: CreateAccessPolicyRequest.h:74
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::WithAccessPolicyIdentity
CreateAccessPolicyRequest & WithAccessPolicyIdentity(const Identity &value)
Definition: CreateAccessPolicyRequest.h:68
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::AddTags
CreateAccessPolicyRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateAccessPolicyRequest.h:314
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::CreateAccessPolicyRequest
CreateAccessPolicyRequest()
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAccessPolicyRequest.h:35
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::WithTags
CreateAccessPolicyRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateAccessPolicyRequest.h:251
Identity.h
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateAccessPolicyRequest.h:170
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateAccessPolicyRequest.h:224
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::AccessPolicyIdentityHasBeenSet
bool AccessPolicyIdentityHasBeenSet() const
Definition: CreateAccessPolicyRequest.h:50
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateAccessPolicyRequest.h:215
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateAccessPolicyRequest.h:163
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::WithClientToken
CreateAccessPolicyRequest & WithClientToken(Aws::String &&value)
Definition: CreateAccessPolicyRequest.h:198
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::AddTags
CreateAccessPolicyRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateAccessPolicyRequest.h:305
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::SetAccessPolicyResource
void SetAccessPolicyResource(Resource &&value)
Definition: CreateAccessPolicyRequest.h:99
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::SetAccessPolicyResource
void SetAccessPolicyResource(const Resource &value)
Definition: CreateAccessPolicyRequest.h:93
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::GetAccessPolicyPermission
const Permission & GetAccessPolicyPermission() const
Definition: CreateAccessPolicyRequest.h:118
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::WithAccessPolicyPermission
CreateAccessPolicyRequest & WithAccessPolicyPermission(Permission &&value)
Definition: CreateAccessPolicyRequest.h:148
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateAccessPolicyRequest.h:177
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::AddTags
CreateAccessPolicyRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateAccessPolicyRequest.h:287
AWSString.h
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::WithClientToken
CreateAccessPolicyRequest & WithClientToken(const char *value)
Definition: CreateAccessPolicyRequest.h:205
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::AccessPolicyResourceHasBeenSet
bool AccessPolicyResourceHasBeenSet() const
Definition: CreateAccessPolicyRequest.h:87
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateAccessPolicyRequest.h:156
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::SetAccessPolicyIdentity
void SetAccessPolicyIdentity(Identity &&value)
Definition: CreateAccessPolicyRequest.h:62
Aws
Definition: AccessManagementClient.h:15
IoTSiteWiseRequest.h
Aws::IoTSiteWise::Model::Permission
Permission
Definition: Permission.h:17
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::WithAccessPolicyPermission
CreateAccessPolicyRequest & WithAccessPolicyPermission(const Permission &value)
Definition: CreateAccessPolicyRequest.h:142
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::CreateAccessPolicyRequest::WithClientToken
CreateAccessPolicyRequest & WithClientToken(const Aws::String &value)
Definition: CreateAccessPolicyRequest.h:191
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::SetAccessPolicyPermission
void SetAccessPolicyPermission(const Permission &value)
Definition: CreateAccessPolicyRequest.h:130
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
Aws::IoTSiteWise::Model::Resource
Definition: Resource.h:34
UUID.h
AWSMap.h
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::AddTags
CreateAccessPolicyRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateAccessPolicyRequest.h:296
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::SetAccessPolicyIdentity
void SetAccessPolicyIdentity(const Identity &value)
Definition: CreateAccessPolicyRequest.h:56