AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IsAuthorizedRequest.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/EntityIdentifier.h>
11#include <aws/verifiedpermissions/model/ActionIdentifier.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 IsAuthorizedRequest();
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 "IsAuthorized"; }
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 IsAuthorizedRequest& WithPolicyStoreId(const Aws::String& value) { SetPolicyStoreId(value); return *this;}
52 inline IsAuthorizedRequest& WithPolicyStoreId(Aws::String&& value) { SetPolicyStoreId(std::move(value)); return *this;}
53 inline IsAuthorizedRequest& WithPolicyStoreId(const char* value) { SetPolicyStoreId(value); return *this;}
55
57
61 inline const EntityIdentifier& GetPrincipal() const{ return m_principal; }
62 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
63 inline void SetPrincipal(const EntityIdentifier& value) { m_principalHasBeenSet = true; m_principal = value; }
64 inline void SetPrincipal(EntityIdentifier&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
65 inline IsAuthorizedRequest& WithPrincipal(const EntityIdentifier& value) { SetPrincipal(value); return *this;}
66 inline IsAuthorizedRequest& WithPrincipal(EntityIdentifier&& value) { SetPrincipal(std::move(value)); return *this;}
68
70
74 inline const ActionIdentifier& GetAction() const{ return m_action; }
75 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
76 inline void SetAction(const ActionIdentifier& value) { m_actionHasBeenSet = true; m_action = value; }
77 inline void SetAction(ActionIdentifier&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
78 inline IsAuthorizedRequest& WithAction(const ActionIdentifier& value) { SetAction(value); return *this;}
79 inline IsAuthorizedRequest& WithAction(ActionIdentifier&& value) { SetAction(std::move(value)); return *this;}
81
83
87 inline const EntityIdentifier& GetResource() const{ return m_resource; }
88 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
89 inline void SetResource(const EntityIdentifier& value) { m_resourceHasBeenSet = true; m_resource = value; }
90 inline void SetResource(EntityIdentifier&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
91 inline IsAuthorizedRequest& WithResource(const EntityIdentifier& value) { SetResource(value); return *this;}
92 inline IsAuthorizedRequest& WithResource(EntityIdentifier&& value) { SetResource(std::move(value)); return *this;}
94
96
100 inline const ContextDefinition& GetContext() const{ return m_context; }
101 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
102 inline void SetContext(const ContextDefinition& value) { m_contextHasBeenSet = true; m_context = value; }
103 inline void SetContext(ContextDefinition&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
104 inline IsAuthorizedRequest& WithContext(const ContextDefinition& value) { SetContext(value); return *this;}
105 inline IsAuthorizedRequest& WithContext(ContextDefinition&& value) { SetContext(std::move(value)); return *this;}
107
109
116 inline const EntitiesDefinition& GetEntities() const{ return m_entities; }
117 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
118 inline void SetEntities(const EntitiesDefinition& value) { m_entitiesHasBeenSet = true; m_entities = value; }
119 inline void SetEntities(EntitiesDefinition&& value) { m_entitiesHasBeenSet = true; m_entities = std::move(value); }
120 inline IsAuthorizedRequest& WithEntities(const EntitiesDefinition& value) { SetEntities(value); return *this;}
121 inline IsAuthorizedRequest& WithEntities(EntitiesDefinition&& value) { SetEntities(std::move(value)); return *this;}
123 private:
124
125 Aws::String m_policyStoreId;
126 bool m_policyStoreIdHasBeenSet = false;
127
128 EntityIdentifier m_principal;
129 bool m_principalHasBeenSet = false;
130
131 ActionIdentifier m_action;
132 bool m_actionHasBeenSet = false;
133
134 EntityIdentifier m_resource;
135 bool m_resourceHasBeenSet = false;
136
137 ContextDefinition m_context;
138 bool m_contextHasBeenSet = false;
139
140 EntitiesDefinition m_entities;
141 bool m_entitiesHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace VerifiedPermissions
146} // namespace Aws
AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
IsAuthorizedRequest & WithContext(const ContextDefinition &value)
IsAuthorizedRequest & WithResource(EntityIdentifier &&value)
IsAuthorizedRequest & WithPrincipal(const EntityIdentifier &value)
IsAuthorizedRequest & WithContext(ContextDefinition &&value)
IsAuthorizedRequest & WithEntities(EntitiesDefinition &&value)
virtual const char * GetServiceRequestName() const override
IsAuthorizedRequest & WithEntities(const EntitiesDefinition &value)
IsAuthorizedRequest & WithAction(ActionIdentifier &&value)
IsAuthorizedRequest & WithResource(const EntityIdentifier &value)
AWS_VERIFIEDPERMISSIONS_API IsAuthorizedRequest()
IsAuthorizedRequest & WithPolicyStoreId(const char *value)
IsAuthorizedRequest & WithPolicyStoreId(Aws::String &&value)
IsAuthorizedRequest & WithPolicyStoreId(const Aws::String &value)
IsAuthorizedRequest & WithPrincipal(EntityIdentifier &&value)
IsAuthorizedRequest & WithAction(const ActionIdentifier &value)
AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override
void SetEntities(const EntitiesDefinition &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String