AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
BatchIsAuthorizedRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/verifiedpermissions/VerifiedPermissionsRequest.h>
10#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
11#include <aws/verifiedpermissions/model/BatchIsAuthorizedInputItem.h>
12#include <aws/verifiedpermissions/model/EntitiesDefinition.h>
13
14#include <utility>
15
16namespace Aws {
17namespace VerifiedPermissions {
18namespace Model {
19
23 public:
24 AWS_VERIFIEDPERMISSIONS_API BatchIsAuthorizedRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "BatchIsAuthorized"; }
31
32 AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override;
33
34 AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
41 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
42 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
43 template <typename PolicyStoreIdT = Aws::String>
44 void SetPolicyStoreId(PolicyStoreIdT&& value) {
45 m_policyStoreIdHasBeenSet = true;
46 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
47 }
48 template <typename PolicyStoreIdT = Aws::String>
50 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
51 return *this;
52 }
54
56
65 inline const EntitiesDefinition& GetEntities() const { return m_entities; }
66 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
67 template <typename EntitiesT = EntitiesDefinition>
68 void SetEntities(EntitiesT&& value) {
69 m_entitiesHasBeenSet = true;
70 m_entities = std::forward<EntitiesT>(value);
71 }
72 template <typename EntitiesT = EntitiesDefinition>
74 SetEntities(std::forward<EntitiesT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::Vector<BatchIsAuthorizedInputItem>& GetRequests() const { return m_requests; }
85 inline bool RequestsHasBeenSet() const { return m_requestsHasBeenSet; }
86 template <typename RequestsT = Aws::Vector<BatchIsAuthorizedInputItem>>
87 void SetRequests(RequestsT&& value) {
88 m_requestsHasBeenSet = true;
89 m_requests = std::forward<RequestsT>(value);
90 }
91 template <typename RequestsT = Aws::Vector<BatchIsAuthorizedInputItem>>
93 SetRequests(std::forward<RequestsT>(value));
94 return *this;
95 }
96 template <typename RequestsT = BatchIsAuthorizedInputItem>
98 m_requestsHasBeenSet = true;
99 m_requests.emplace_back(std::forward<RequestsT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_policyStoreId;
105
106 EntitiesDefinition m_entities;
107
109 bool m_policyStoreIdHasBeenSet = false;
110 bool m_entitiesHasBeenSet = false;
111 bool m_requestsHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace VerifiedPermissions
116} // namespace Aws
AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override
BatchIsAuthorizedRequest & WithEntities(EntitiesT &&value)
BatchIsAuthorizedRequest & WithRequests(RequestsT &&value)
BatchIsAuthorizedRequest & AddRequests(RequestsT &&value)
BatchIsAuthorizedRequest & WithPolicyStoreId(PolicyStoreIdT &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< BatchIsAuthorizedInputItem > & GetRequests() const
AWS_VERIFIEDPERMISSIONS_API BatchIsAuthorizedRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector