AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ListAccessPoliciesRequest.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/IoTSiteWiseRequest.h>
9#include <aws/iotsitewise/model/IdentityType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/iotsitewise/model/ResourceType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace IoTSiteWise
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_IOTSITEWISE_API ListAccessPoliciesRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListAccessPolicies"; }
37
38 AWS_IOTSITEWISE_API Aws::String SerializePayload() const override;
39
40 AWS_IOTSITEWISE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
49 inline IdentityType GetIdentityType() const { return m_identityType; }
50 inline bool IdentityTypeHasBeenSet() const { return m_identityTypeHasBeenSet; }
51 inline void SetIdentityType(IdentityType value) { m_identityTypeHasBeenSet = true; m_identityType = value; }
54
56
60 inline const Aws::String& GetIdentityId() const { return m_identityId; }
61 inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
62 template<typename IdentityIdT = Aws::String>
63 void SetIdentityId(IdentityIdT&& value) { m_identityIdHasBeenSet = true; m_identityId = std::forward<IdentityIdT>(value); }
64 template<typename IdentityIdT = Aws::String>
65 ListAccessPoliciesRequest& WithIdentityId(IdentityIdT&& value) { SetIdentityId(std::forward<IdentityIdT>(value)); return *this;}
67
69
73 inline ResourceType GetResourceType() const { return m_resourceType; }
74 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
75 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
78
80
84 inline const Aws::String& GetResourceId() const { return m_resourceId; }
85 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
86 template<typename ResourceIdT = Aws::String>
87 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
88 template<typename ResourceIdT = Aws::String>
89 ListAccessPoliciesRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
91
93
99 inline const Aws::String& GetIamArn() const { return m_iamArn; }
100 inline bool IamArnHasBeenSet() const { return m_iamArnHasBeenSet; }
101 template<typename IamArnT = Aws::String>
102 void SetIamArn(IamArnT&& value) { m_iamArnHasBeenSet = true; m_iamArn = std::forward<IamArnT>(value); }
103 template<typename IamArnT = Aws::String>
104 ListAccessPoliciesRequest& WithIamArn(IamArnT&& value) { SetIamArn(std::forward<IamArnT>(value)); return *this;}
106
108
111 inline const Aws::String& GetNextToken() const { return m_nextToken; }
112 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
113 template<typename NextTokenT = Aws::String>
114 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
115 template<typename NextTokenT = Aws::String>
116 ListAccessPoliciesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
118
120
124 inline int GetMaxResults() const { return m_maxResults; }
125 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
126 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
127 inline ListAccessPoliciesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
129 private:
130
131 IdentityType m_identityType{IdentityType::NOT_SET};
132 bool m_identityTypeHasBeenSet = false;
133
134 Aws::String m_identityId;
135 bool m_identityIdHasBeenSet = false;
136
137 ResourceType m_resourceType{ResourceType::NOT_SET};
138 bool m_resourceTypeHasBeenSet = false;
139
140 Aws::String m_resourceId;
141 bool m_resourceIdHasBeenSet = false;
142
143 Aws::String m_iamArn;
144 bool m_iamArnHasBeenSet = false;
145
146 Aws::String m_nextToken;
147 bool m_nextTokenHasBeenSet = false;
148
149 int m_maxResults{0};
150 bool m_maxResultsHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace IoTSiteWise
155} // namespace Aws
ListAccessPoliciesRequest & WithResourceId(ResourceIdT &&value)
ListAccessPoliciesRequest & WithResourceType(ResourceType value)
ListAccessPoliciesRequest & WithIamArn(IamArnT &&value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
ListAccessPoliciesRequest & WithNextToken(NextTokenT &&value)
ListAccessPoliciesRequest & WithIdentityId(IdentityIdT &&value)
AWS_IOTSITEWISE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListAccessPoliciesRequest & WithIdentityType(IdentityType value)
virtual const char * GetServiceRequestName() const override
AWS_IOTSITEWISE_API ListAccessPoliciesRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String