AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPolicyStoreId(const Aws::String& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = value; }
48 inline void SetPolicyStoreId(Aws::String&& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = std::move(value); }
49 inline void SetPolicyStoreId(const char* value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId.assign(value); }
50 inline BatchIsAuthorizedRequest& WithPolicyStoreId(const Aws::String& value) { SetPolicyStoreId(value); return *this;}
51 inline BatchIsAuthorizedRequest& WithPolicyStoreId(Aws::String&& value) { SetPolicyStoreId(std::move(value)); return *this;}
52 inline BatchIsAuthorizedRequest& WithPolicyStoreId(const char* value) { SetPolicyStoreId(value); return *this;}
54
56
63 inline const EntitiesDefinition& GetEntities() const{ return m_entities; }
64 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
65 inline void SetEntities(const EntitiesDefinition& value) { m_entitiesHasBeenSet = true; m_entities = value; }
66 inline void SetEntities(EntitiesDefinition&& value) { m_entitiesHasBeenSet = true; m_entities = std::move(value); }
67 inline BatchIsAuthorizedRequest& WithEntities(const EntitiesDefinition& value) { SetEntities(value); return *this;}
68 inline BatchIsAuthorizedRequest& WithEntities(EntitiesDefinition&& value) { SetEntities(std::move(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 inline void SetRequests(const Aws::Vector<BatchIsAuthorizedInputItem>& value) { m_requestsHasBeenSet = true; m_requests = value; }
79 inline void SetRequests(Aws::Vector<BatchIsAuthorizedInputItem>&& value) { m_requestsHasBeenSet = true; m_requests = std::move(value); }
82 inline BatchIsAuthorizedRequest& AddRequests(const BatchIsAuthorizedInputItem& value) { m_requestsHasBeenSet = true; m_requests.push_back(value); return *this; }
83 inline BatchIsAuthorizedRequest& AddRequests(BatchIsAuthorizedInputItem&& value) { m_requestsHasBeenSet = true; m_requests.push_back(std::move(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 & WithPolicyStoreId(const Aws::String &value)
void SetRequests(const Aws::Vector< BatchIsAuthorizedInputItem > &value)
AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchIsAuthorizedRequest & WithEntities(const EntitiesDefinition &value)
BatchIsAuthorizedRequest & WithRequests(const Aws::Vector< BatchIsAuthorizedInputItem > &value)
BatchIsAuthorizedRequest & WithEntities(EntitiesDefinition &&value)
void SetRequests(Aws::Vector< BatchIsAuthorizedInputItem > &&value)
BatchIsAuthorizedRequest & AddRequests(BatchIsAuthorizedInputItem &&value)
BatchIsAuthorizedRequest & WithPolicyStoreId(const char *value)
BatchIsAuthorizedRequest & WithRequests(Aws::Vector< BatchIsAuthorizedInputItem > &&value)
const Aws::Vector< BatchIsAuthorizedInputItem > & GetRequests() const
BatchIsAuthorizedRequest & WithPolicyStoreId(Aws::String &&value)
BatchIsAuthorizedRequest & AddRequests(const BatchIsAuthorizedInputItem &value)
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