AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchIsAuthorizedRequest.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/EntitiesDefinition.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/verifiedpermissions/model/BatchIsAuthorizedInputItem.h>
13#include <utility>
14
15namespace Aws
16{
17namespace VerifiedPermissions
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_VERIFIEDPERMISSIONS_API BatchIsAuthorizedRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "BatchIsAuthorized"; }
34
35 AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override;
36
37 AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
46 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
47 template<typename PolicyStoreIdT = Aws::String>
48 void SetPolicyStoreId(PolicyStoreIdT&& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = std::forward<PolicyStoreIdT>(value); }
49 template<typename PolicyStoreIdT = Aws::String>
50 BatchIsAuthorizedRequest& WithPolicyStoreId(PolicyStoreIdT&& value) { SetPolicyStoreId(std::forward<PolicyStoreIdT>(value)); return *this;}
52
54
63 inline const EntitiesDefinition& GetEntities() const { return m_entities; }
64 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
65 template<typename EntitiesT = EntitiesDefinition>
66 void SetEntities(EntitiesT&& value) { m_entitiesHasBeenSet = true; m_entities = std::forward<EntitiesT>(value); }
67 template<typename EntitiesT = EntitiesDefinition>
68 BatchIsAuthorizedRequest& WithEntities(EntitiesT&& value) { SetEntities(std::forward<EntitiesT>(value)); return *this;}
70
72
76 inline const Aws::Vector<BatchIsAuthorizedInputItem>& GetRequests() const { return m_requests; }
77 inline bool RequestsHasBeenSet() const { return m_requestsHasBeenSet; }
78 template<typename RequestsT = Aws::Vector<BatchIsAuthorizedInputItem>>
79 void SetRequests(RequestsT&& value) { m_requestsHasBeenSet = true; m_requests = std::forward<RequestsT>(value); }
80 template<typename RequestsT = Aws::Vector<BatchIsAuthorizedInputItem>>
81 BatchIsAuthorizedRequest& WithRequests(RequestsT&& value) { SetRequests(std::forward<RequestsT>(value)); return *this;}
82 template<typename RequestsT = BatchIsAuthorizedInputItem>
83 BatchIsAuthorizedRequest& AddRequests(RequestsT&& value) { m_requestsHasBeenSet = true; m_requests.emplace_back(std::forward<RequestsT>(value)); return *this; }
85 private:
86
87 Aws::String m_policyStoreId;
88 bool m_policyStoreIdHasBeenSet = false;
89
90 EntitiesDefinition m_entities;
91 bool m_entitiesHasBeenSet = false;
92
94 bool m_requestsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace VerifiedPermissions
99} // 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