AWS SDK for C++

AWS SDK for C++ Version 1.11.781

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
47 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
48 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
49 template <typename PolicyStoreIdT = Aws::String>
50 void SetPolicyStoreId(PolicyStoreIdT&& value) {
51 m_policyStoreIdHasBeenSet = true;
52 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
53 }
54 template <typename PolicyStoreIdT = Aws::String>
56 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
57 return *this;
58 }
60
62
71 inline const EntitiesDefinition& GetEntities() const { return m_entities; }
72 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
73 template <typename EntitiesT = EntitiesDefinition>
74 void SetEntities(EntitiesT&& value) {
75 m_entitiesHasBeenSet = true;
76 m_entities = std::forward<EntitiesT>(value);
77 }
78 template <typename EntitiesT = EntitiesDefinition>
80 SetEntities(std::forward<EntitiesT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::Vector<BatchIsAuthorizedInputItem>& GetRequests() const { return m_requests; }
91 inline bool RequestsHasBeenSet() const { return m_requestsHasBeenSet; }
92 template <typename RequestsT = Aws::Vector<BatchIsAuthorizedInputItem>>
93 void SetRequests(RequestsT&& value) {
94 m_requestsHasBeenSet = true;
95 m_requests = std::forward<RequestsT>(value);
96 }
97 template <typename RequestsT = Aws::Vector<BatchIsAuthorizedInputItem>>
99 SetRequests(std::forward<RequestsT>(value));
100 return *this;
101 }
102 template <typename RequestsT = BatchIsAuthorizedInputItem>
104 m_requestsHasBeenSet = true;
105 m_requests.emplace_back(std::forward<RequestsT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_policyStoreId;
111
112 EntitiesDefinition m_entities;
113
115 bool m_policyStoreIdHasBeenSet = false;
116 bool m_entitiesHasBeenSet = false;
117 bool m_requestsHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace VerifiedPermissions
122} // 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