AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPolicyStoreId(const Aws::String& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = value; }
49 inline void SetPolicyStoreId(Aws::String&& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = std::move(value); }
50 inline void SetPolicyStoreId(const char* value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId.assign(value); }
51 inline IsAuthorizedWithTokenRequest& WithPolicyStoreId(const Aws::String& value) { SetPolicyStoreId(value); return *this;}
52 inline IsAuthorizedWithTokenRequest& WithPolicyStoreId(Aws::String&& value) { SetPolicyStoreId(std::move(value)); return *this;}
53 inline IsAuthorizedWithTokenRequest& WithPolicyStoreId(const char* value) { SetPolicyStoreId(value); return *this;}
55
57
65 inline const Aws::String& GetIdentityToken() const{ return m_identityToken; }
66 inline bool IdentityTokenHasBeenSet() const { return m_identityTokenHasBeenSet; }
67 inline void SetIdentityToken(const Aws::String& value) { m_identityTokenHasBeenSet = true; m_identityToken = value; }
68 inline void SetIdentityToken(Aws::String&& value) { m_identityTokenHasBeenSet = true; m_identityToken = std::move(value); }
69 inline void SetIdentityToken(const char* value) { m_identityTokenHasBeenSet = true; m_identityToken.assign(value); }
70 inline IsAuthorizedWithTokenRequest& WithIdentityToken(const Aws::String& value) { SetIdentityToken(value); return *this;}
71 inline IsAuthorizedWithTokenRequest& WithIdentityToken(Aws::String&& value) { SetIdentityToken(std::move(value)); return *this;}
72 inline IsAuthorizedWithTokenRequest& WithIdentityToken(const char* value) { SetIdentityToken(value); return *this;}
74
76
84 inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
85 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
86 inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
87 inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
88 inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
89 inline IsAuthorizedWithTokenRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
90 inline IsAuthorizedWithTokenRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
91 inline IsAuthorizedWithTokenRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
93
95
99 inline const ActionIdentifier& GetAction() const{ return m_action; }
100 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
101 inline void SetAction(const ActionIdentifier& value) { m_actionHasBeenSet = true; m_action = value; }
102 inline void SetAction(ActionIdentifier&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
103 inline IsAuthorizedWithTokenRequest& WithAction(const ActionIdentifier& value) { SetAction(value); return *this;}
104 inline IsAuthorizedWithTokenRequest& WithAction(ActionIdentifier&& value) { SetAction(std::move(value)); return *this;}
106
108
112 inline const EntityIdentifier& GetResource() const{ return m_resource; }
113 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
114 inline void SetResource(const EntityIdentifier& value) { m_resourceHasBeenSet = true; m_resource = value; }
115 inline void SetResource(EntityIdentifier&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
116 inline IsAuthorizedWithTokenRequest& WithResource(const EntityIdentifier& value) { SetResource(value); return *this;}
117 inline IsAuthorizedWithTokenRequest& WithResource(EntityIdentifier&& value) { SetResource(std::move(value)); return *this;}
119
121
125 inline const ContextDefinition& GetContext() const{ return m_context; }
126 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
127 inline void SetContext(const ContextDefinition& value) { m_contextHasBeenSet = true; m_context = value; }
128 inline void SetContext(ContextDefinition&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
129 inline IsAuthorizedWithTokenRequest& WithContext(const ContextDefinition& value) { SetContext(value); return *this;}
130 inline IsAuthorizedWithTokenRequest& WithContext(ContextDefinition&& value) { SetContext(std::move(value)); return *this;}
132
134
146 inline const EntitiesDefinition& GetEntities() const{ return m_entities; }
147 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
148 inline void SetEntities(const EntitiesDefinition& value) { m_entitiesHasBeenSet = true; m_entities = value; }
149 inline void SetEntities(EntitiesDefinition&& value) { m_entitiesHasBeenSet = true; m_entities = std::move(value); }
150 inline IsAuthorizedWithTokenRequest& WithEntities(const EntitiesDefinition& value) { SetEntities(value); return *this;}
151 inline IsAuthorizedWithTokenRequest& WithEntities(EntitiesDefinition&& value) { SetEntities(std::move(value)); return *this;}
153 private:
154
155 Aws::String m_policyStoreId;
156 bool m_policyStoreIdHasBeenSet = false;
157
158 Aws::String m_identityToken;
159 bool m_identityTokenHasBeenSet = false;
160
161 Aws::String m_accessToken;
162 bool m_accessTokenHasBeenSet = false;
163
164 ActionIdentifier m_action;
165 bool m_actionHasBeenSet = false;
166
167 EntityIdentifier m_resource;
168 bool m_resourceHasBeenSet = false;
169
170 ContextDefinition m_context;
171 bool m_contextHasBeenSet = false;
172
173 EntitiesDefinition m_entities;
174 bool m_entitiesHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace VerifiedPermissions
179} // namespace Aws
AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
IsAuthorizedWithTokenRequest & WithIdentityToken(const char *value)
IsAuthorizedWithTokenRequest & WithEntities(EntitiesDefinition &&value)
IsAuthorizedWithTokenRequest & WithIdentityToken(Aws::String &&value)
IsAuthorizedWithTokenRequest & WithResource(const EntityIdentifier &value)
IsAuthorizedWithTokenRequest & WithAccessToken(const char *value)
IsAuthorizedWithTokenRequest & WithAccessToken(Aws::String &&value)
IsAuthorizedWithTokenRequest & WithContext(ContextDefinition &&value)
IsAuthorizedWithTokenRequest & WithResource(EntityIdentifier &&value)
IsAuthorizedWithTokenRequest & WithAction(ActionIdentifier &&value)
IsAuthorizedWithTokenRequest & WithContext(const ContextDefinition &value)
AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override
IsAuthorizedWithTokenRequest & WithEntities(const EntitiesDefinition &value)
IsAuthorizedWithTokenRequest & WithIdentityToken(const Aws::String &value)
IsAuthorizedWithTokenRequest & WithPolicyStoreId(Aws::String &&value)
IsAuthorizedWithTokenRequest & WithAccessToken(const Aws::String &value)
IsAuthorizedWithTokenRequest & WithPolicyStoreId(const Aws::String &value)
IsAuthorizedWithTokenRequest & WithPolicyStoreId(const char *value)
IsAuthorizedWithTokenRequest & WithAction(const ActionIdentifier &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String