AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
IsAuthorizedWithTokenRequest.h
1
6#pragma once
7#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
8#include <aws/verifiedpermissions/VerifiedPermissionsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/verifiedpermissions/model/ActionIdentifier.h>
11#include <aws/verifiedpermissions/model/EntityIdentifier.h>
12#include <aws/verifiedpermissions/model/ContextDefinition.h>
13#include <aws/verifiedpermissions/model/EntitiesDefinition.h>
14#include <utility>
15
16namespace Aws
17{
18namespace VerifiedPermissions
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_VERIFIEDPERMISSIONS_API IsAuthorizedWithTokenRequest() = default;
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 "IsAuthorizedWithToken"; }
35
36 AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override;
37
38 AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
47 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
48 template<typename PolicyStoreIdT = Aws::String>
49 void SetPolicyStoreId(PolicyStoreIdT&& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = std::forward<PolicyStoreIdT>(value); }
50 template<typename PolicyStoreIdT = Aws::String>
51 IsAuthorizedWithTokenRequest& WithPolicyStoreId(PolicyStoreIdT&& value) { SetPolicyStoreId(std::forward<PolicyStoreIdT>(value)); return *this;}
53
55
63 inline const Aws::String& GetIdentityToken() const { return m_identityToken; }
64 inline bool IdentityTokenHasBeenSet() const { return m_identityTokenHasBeenSet; }
65 template<typename IdentityTokenT = Aws::String>
66 void SetIdentityToken(IdentityTokenT&& value) { m_identityTokenHasBeenSet = true; m_identityToken = std::forward<IdentityTokenT>(value); }
67 template<typename IdentityTokenT = Aws::String>
68 IsAuthorizedWithTokenRequest& WithIdentityToken(IdentityTokenT&& value) { SetIdentityToken(std::forward<IdentityTokenT>(value)); return *this;}
70
72
80 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
81 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
82 template<typename AccessTokenT = Aws::String>
83 void SetAccessToken(AccessTokenT&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::forward<AccessTokenT>(value); }
84 template<typename AccessTokenT = Aws::String>
85 IsAuthorizedWithTokenRequest& WithAccessToken(AccessTokenT&& value) { SetAccessToken(std::forward<AccessTokenT>(value)); return *this;}
87
89
93 inline const ActionIdentifier& GetAction() const { return m_action; }
94 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
95 template<typename ActionT = ActionIdentifier>
96 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
97 template<typename ActionT = ActionIdentifier>
98 IsAuthorizedWithTokenRequest& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
100
102
106 inline const EntityIdentifier& GetResource() const { return m_resource; }
107 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
108 template<typename ResourceT = EntityIdentifier>
109 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
110 template<typename ResourceT = EntityIdentifier>
111 IsAuthorizedWithTokenRequest& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
113
115
119 inline const ContextDefinition& GetContext() const { return m_context; }
120 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
121 template<typename ContextT = ContextDefinition>
122 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
123 template<typename ContextT = ContextDefinition>
124 IsAuthorizedWithTokenRequest& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
126
128
142 inline const EntitiesDefinition& GetEntities() const { return m_entities; }
143 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
144 template<typename EntitiesT = EntitiesDefinition>
145 void SetEntities(EntitiesT&& value) { m_entitiesHasBeenSet = true; m_entities = std::forward<EntitiesT>(value); }
146 template<typename EntitiesT = EntitiesDefinition>
147 IsAuthorizedWithTokenRequest& WithEntities(EntitiesT&& value) { SetEntities(std::forward<EntitiesT>(value)); return *this;}
149 private:
150
151 Aws::String m_policyStoreId;
152 bool m_policyStoreIdHasBeenSet = false;
153
154 Aws::String m_identityToken;
155 bool m_identityTokenHasBeenSet = false;
156
157 Aws::String m_accessToken;
158 bool m_accessTokenHasBeenSet = false;
159
160 ActionIdentifier m_action;
161 bool m_actionHasBeenSet = false;
162
163 EntityIdentifier m_resource;
164 bool m_resourceHasBeenSet = false;
165
166 ContextDefinition m_context;
167 bool m_contextHasBeenSet = false;
168
169 EntitiesDefinition m_entities;
170 bool m_entitiesHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace VerifiedPermissions
175} // namespace Aws
IsAuthorizedWithTokenRequest & WithResource(ResourceT &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
IsAuthorizedWithTokenRequest & WithPolicyStoreId(PolicyStoreIdT &&value)
IsAuthorizedWithTokenRequest & WithEntities(EntitiesT &&value)
IsAuthorizedWithTokenRequest & WithAccessToken(AccessTokenT &&value)
AWS_VERIFIEDPERMISSIONS_API IsAuthorizedWithTokenRequest()=default
IsAuthorizedWithTokenRequest & WithIdentityToken(IdentityTokenT &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String