AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchIsAuthorizedInputItem.h
1
6#pragma once
7#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
8#include <aws/verifiedpermissions/model/EntityIdentifier.h>
9#include <aws/verifiedpermissions/model/ActionIdentifier.h>
10#include <aws/verifiedpermissions/model/ContextDefinition.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace VerifiedPermissions
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_VERIFIEDPERMISSIONS_API BatchIsAuthorizedInputItem() = default;
38 AWS_VERIFIEDPERMISSIONS_API BatchIsAuthorizedInputItem(Aws::Utils::Json::JsonView jsonValue);
39 AWS_VERIFIEDPERMISSIONS_API BatchIsAuthorizedInputItem& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const EntityIdentifier& GetPrincipal() const { return m_principal; }
49 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
50 template<typename PrincipalT = EntityIdentifier>
51 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet = true; m_principal = std::forward<PrincipalT>(value); }
52 template<typename PrincipalT = EntityIdentifier>
53 BatchIsAuthorizedInputItem& WithPrincipal(PrincipalT&& value) { SetPrincipal(std::forward<PrincipalT>(value)); return *this;}
55
57
61 inline const ActionIdentifier& GetAction() const { return m_action; }
62 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
63 template<typename ActionT = ActionIdentifier>
64 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
65 template<typename ActionT = ActionIdentifier>
66 BatchIsAuthorizedInputItem& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
68
70
74 inline const EntityIdentifier& GetResource() const { return m_resource; }
75 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
76 template<typename ResourceT = EntityIdentifier>
77 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
78 template<typename ResourceT = EntityIdentifier>
79 BatchIsAuthorizedInputItem& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
81
83
87 inline const ContextDefinition& GetContext() const { return m_context; }
88 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
89 template<typename ContextT = ContextDefinition>
90 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
91 template<typename ContextT = ContextDefinition>
92 BatchIsAuthorizedInputItem& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
94 private:
95
96 EntityIdentifier m_principal;
97 bool m_principalHasBeenSet = false;
98
99 ActionIdentifier m_action;
100 bool m_actionHasBeenSet = false;
101
102 EntityIdentifier m_resource;
103 bool m_resourceHasBeenSet = false;
104
105 ContextDefinition m_context;
106 bool m_contextHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace VerifiedPermissions
111} // namespace Aws
AWS_VERIFIEDPERMISSIONS_API BatchIsAuthorizedInputItem(Aws::Utils::Json::JsonView jsonValue)
BatchIsAuthorizedInputItem & WithPrincipal(PrincipalT &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
BatchIsAuthorizedInputItem & WithContext(ContextT &&value)
BatchIsAuthorizedInputItem & WithResource(ResourceT &&value)
AWS_VERIFIEDPERMISSIONS_API BatchIsAuthorizedInputItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_VERIFIEDPERMISSIONS_API BatchIsAuthorizedInputItem()=default
Aws::Utils::Json::JsonValue JsonValue