AWS SDK for C++  1.9.159
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 
214  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
215 
222  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
223 
230  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
231 
238  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
239 
246  inline CreateAccessPolicyRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
247 
254  inline CreateAccessPolicyRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
255 
262  inline CreateAccessPolicyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
263 
270  inline CreateAccessPolicyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
271 
278  inline CreateAccessPolicyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
279 
286  inline CreateAccessPolicyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
287 
294  inline CreateAccessPolicyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
295 
302  inline CreateAccessPolicyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
303 
310  inline CreateAccessPolicyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
311 
312  private:
313 
314  Identity m_accessPolicyIdentity;
315  bool m_accessPolicyIdentityHasBeenSet;
316 
317  Resource m_accessPolicyResource;
318  bool m_accessPolicyResourceHasBeenSet;
319 
320  Permission m_accessPolicyPermission;
321  bool m_accessPolicyPermissionHasBeenSet;
322 
323  Aws::String m_clientToken;
324  bool m_clientTokenHasBeenSet;
325 
327  bool m_tagsHasBeenSet;
328  };
329 
330 } // namespace Model
331 } // namespace IoTSiteWise
332 } // 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:230
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::WithTags
CreateAccessPolicyRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateAccessPolicyRequest.h:254
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::AddTags
CreateAccessPolicyRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateAccessPolicyRequest.h:262
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:270
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:310
Aws::IoTSiteWise::Model::CreateAccessPolicyRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateAccessPolicyRequest.h:238
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:302
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:246
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:222
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:214
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:294
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:278
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:40
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:286
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