AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateAccessPolicyRequest.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/IoTSiteWiseRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iotsitewise/model/Identity.h>
11#include <aws/iotsitewise/model/Resource.h>
12#include <aws/iotsitewise/model/Permission.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace IoTSiteWise
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOTSITEWISE_API UpdateAccessPolicyRequest();
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_IOTSITEWISE_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetAccessPolicyId() const{ return m_accessPolicyId; }
44 inline bool AccessPolicyIdHasBeenSet() const { return m_accessPolicyIdHasBeenSet; }
45 inline void SetAccessPolicyId(const Aws::String& value) { m_accessPolicyIdHasBeenSet = true; m_accessPolicyId = value; }
46 inline void SetAccessPolicyId(Aws::String&& value) { m_accessPolicyIdHasBeenSet = true; m_accessPolicyId = std::move(value); }
47 inline void SetAccessPolicyId(const char* value) { m_accessPolicyIdHasBeenSet = true; m_accessPolicyId.assign(value); }
48 inline UpdateAccessPolicyRequest& WithAccessPolicyId(const Aws::String& value) { SetAccessPolicyId(value); return *this;}
49 inline UpdateAccessPolicyRequest& WithAccessPolicyId(Aws::String&& value) { SetAccessPolicyId(std::move(value)); return *this;}
50 inline UpdateAccessPolicyRequest& WithAccessPolicyId(const char* value) { SetAccessPolicyId(value); return *this;}
52
54
58 inline const Identity& GetAccessPolicyIdentity() const{ return m_accessPolicyIdentity; }
59 inline bool AccessPolicyIdentityHasBeenSet() const { return m_accessPolicyIdentityHasBeenSet; }
60 inline void SetAccessPolicyIdentity(const Identity& value) { m_accessPolicyIdentityHasBeenSet = true; m_accessPolicyIdentity = value; }
61 inline void SetAccessPolicyIdentity(Identity&& value) { m_accessPolicyIdentityHasBeenSet = true; m_accessPolicyIdentity = std::move(value); }
63 inline UpdateAccessPolicyRequest& WithAccessPolicyIdentity(Identity&& value) { SetAccessPolicyIdentity(std::move(value)); return *this;}
65
67
71 inline const Resource& GetAccessPolicyResource() const{ return m_accessPolicyResource; }
72 inline bool AccessPolicyResourceHasBeenSet() const { return m_accessPolicyResourceHasBeenSet; }
73 inline void SetAccessPolicyResource(const Resource& value) { m_accessPolicyResourceHasBeenSet = true; m_accessPolicyResource = value; }
74 inline void SetAccessPolicyResource(Resource&& value) { m_accessPolicyResourceHasBeenSet = true; m_accessPolicyResource = std::move(value); }
76 inline UpdateAccessPolicyRequest& WithAccessPolicyResource(Resource&& value) { SetAccessPolicyResource(std::move(value)); return *this;}
78
80
84 inline const Permission& GetAccessPolicyPermission() const{ return m_accessPolicyPermission; }
85 inline bool AccessPolicyPermissionHasBeenSet() const { return m_accessPolicyPermissionHasBeenSet; }
86 inline void SetAccessPolicyPermission(const Permission& value) { m_accessPolicyPermissionHasBeenSet = true; m_accessPolicyPermission = value; }
87 inline void SetAccessPolicyPermission(Permission&& value) { m_accessPolicyPermissionHasBeenSet = true; m_accessPolicyPermission = std::move(value); }
91
93
98 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
99 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
100 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
101 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
102 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
103 inline UpdateAccessPolicyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
104 inline UpdateAccessPolicyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
105 inline UpdateAccessPolicyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
107 private:
108
109 Aws::String m_accessPolicyId;
110 bool m_accessPolicyIdHasBeenSet = false;
111
112 Identity m_accessPolicyIdentity;
113 bool m_accessPolicyIdentityHasBeenSet = false;
114
115 Resource m_accessPolicyResource;
116 bool m_accessPolicyResourceHasBeenSet = false;
117
118 Permission m_accessPolicyPermission;
119 bool m_accessPolicyPermissionHasBeenSet = false;
120
121 Aws::String m_clientToken;
122 bool m_clientTokenHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace IoTSiteWise
127} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdateAccessPolicyRequest & WithAccessPolicyResource(Resource &&value)
UpdateAccessPolicyRequest & WithClientToken(const Aws::String &value)
UpdateAccessPolicyRequest & WithAccessPolicyIdentity(const Identity &value)
UpdateAccessPolicyRequest & WithClientToken(Aws::String &&value)
UpdateAccessPolicyRequest & WithAccessPolicyId(Aws::String &&value)
UpdateAccessPolicyRequest & WithAccessPolicyId(const Aws::String &value)
UpdateAccessPolicyRequest & WithAccessPolicyResource(const Resource &value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
UpdateAccessPolicyRequest & WithAccessPolicyPermission(Permission &&value)
UpdateAccessPolicyRequest & WithClientToken(const char *value)
UpdateAccessPolicyRequest & WithAccessPolicyPermission(const Permission &value)
UpdateAccessPolicyRequest & WithAccessPolicyId(const char *value)
UpdateAccessPolicyRequest & WithAccessPolicyIdentity(Identity &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String