AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAccessPolicyRequest.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/IoTSiteWiseRequest.h>
9#include <aws/iotsitewise/model/Identity.h>
10#include <aws/iotsitewise/model/Resource.h>
11#include <aws/iotsitewise/model/Permission.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace IoTSiteWise
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_IOTSITEWISE_API CreateAccessPolicyRequest();
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_IOTSITEWISE_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Identity& GetAccessPolicyIdentity() const{ return m_accessPolicyIdentity; }
46 inline bool AccessPolicyIdentityHasBeenSet() const { return m_accessPolicyIdentityHasBeenSet; }
47 inline void SetAccessPolicyIdentity(const Identity& value) { m_accessPolicyIdentityHasBeenSet = true; m_accessPolicyIdentity = value; }
48 inline void SetAccessPolicyIdentity(Identity&& value) { m_accessPolicyIdentityHasBeenSet = true; m_accessPolicyIdentity = std::move(value); }
50 inline CreateAccessPolicyRequest& WithAccessPolicyIdentity(Identity&& value) { SetAccessPolicyIdentity(std::move(value)); return *this;}
52
54
58 inline const Resource& GetAccessPolicyResource() const{ return m_accessPolicyResource; }
59 inline bool AccessPolicyResourceHasBeenSet() const { return m_accessPolicyResourceHasBeenSet; }
60 inline void SetAccessPolicyResource(const Resource& value) { m_accessPolicyResourceHasBeenSet = true; m_accessPolicyResource = value; }
61 inline void SetAccessPolicyResource(Resource&& value) { m_accessPolicyResourceHasBeenSet = true; m_accessPolicyResource = std::move(value); }
63 inline CreateAccessPolicyRequest& WithAccessPolicyResource(Resource&& value) { SetAccessPolicyResource(std::move(value)); return *this;}
65
67
71 inline const Permission& GetAccessPolicyPermission() const{ return m_accessPolicyPermission; }
72 inline bool AccessPolicyPermissionHasBeenSet() const { return m_accessPolicyPermissionHasBeenSet; }
73 inline void SetAccessPolicyPermission(const Permission& value) { m_accessPolicyPermissionHasBeenSet = true; m_accessPolicyPermission = value; }
74 inline void SetAccessPolicyPermission(Permission&& value) { m_accessPolicyPermissionHasBeenSet = true; m_accessPolicyPermission = std::move(value); }
78
80
85 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
86 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
87 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
88 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
89 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
90 inline CreateAccessPolicyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
91 inline CreateAccessPolicyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
92 inline CreateAccessPolicyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
94
96
102 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
105 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
107 inline CreateAccessPolicyRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
108 inline CreateAccessPolicyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
109 inline CreateAccessPolicyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
110 inline CreateAccessPolicyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
111 inline CreateAccessPolicyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
112 inline CreateAccessPolicyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
113 inline CreateAccessPolicyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
114 inline CreateAccessPolicyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
116 private:
117
118 Identity m_accessPolicyIdentity;
119 bool m_accessPolicyIdentityHasBeenSet = false;
120
121 Resource m_accessPolicyResource;
122 bool m_accessPolicyResourceHasBeenSet = false;
123
124 Permission m_accessPolicyPermission;
125 bool m_accessPolicyPermissionHasBeenSet = false;
126
127 Aws::String m_clientToken;
128 bool m_clientTokenHasBeenSet = false;
129
131 bool m_tagsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace IoTSiteWise
136} // namespace Aws
CreateAccessPolicyRequest & AddTags(const char *key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateAccessPolicyRequest & WithAccessPolicyResource(Resource &&value)
CreateAccessPolicyRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateAccessPolicyRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAccessPolicyRequest & WithClientToken(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAccessPolicyRequest & AddTags(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAccessPolicyRequest & WithClientToken(Aws::String &&value)
CreateAccessPolicyRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateAccessPolicyRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateAccessPolicyRequest & WithClientToken(const char *value)
CreateAccessPolicyRequest & AddTags(Aws::String &&key, const char *value)
CreateAccessPolicyRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateAccessPolicyRequest & WithAccessPolicyIdentity(Identity &&value)
CreateAccessPolicyRequest & WithAccessPolicyPermission(Permission &&value)
CreateAccessPolicyRequest & WithAccessPolicyIdentity(const Identity &value)
CreateAccessPolicyRequest & WithAccessPolicyResource(const Resource &value)
CreateAccessPolicyRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAccessPolicyRequest & WithAccessPolicyPermission(const Permission &value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String