AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPrincipal(const EntityIdentifier& value) { m_principalHasBeenSet = true; m_principal = value; }
51 inline void SetPrincipal(EntityIdentifier&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
52 inline BatchIsAuthorizedInputItem& WithPrincipal(const EntityIdentifier& value) { SetPrincipal(value); return *this;}
53 inline BatchIsAuthorizedInputItem& WithPrincipal(EntityIdentifier&& value) { SetPrincipal(std::move(value)); return *this;}
55
57
61 inline const ActionIdentifier& GetAction() const{ return m_action; }
62 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
63 inline void SetAction(const ActionIdentifier& value) { m_actionHasBeenSet = true; m_action = value; }
64 inline void SetAction(ActionIdentifier&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
65 inline BatchIsAuthorizedInputItem& WithAction(const ActionIdentifier& value) { SetAction(value); return *this;}
66 inline BatchIsAuthorizedInputItem& WithAction(ActionIdentifier&& value) { SetAction(std::move(value)); return *this;}
68
70
74 inline const EntityIdentifier& GetResource() const{ return m_resource; }
75 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
76 inline void SetResource(const EntityIdentifier& value) { m_resourceHasBeenSet = true; m_resource = value; }
77 inline void SetResource(EntityIdentifier&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
78 inline BatchIsAuthorizedInputItem& WithResource(const EntityIdentifier& value) { SetResource(value); return *this;}
79 inline BatchIsAuthorizedInputItem& WithResource(EntityIdentifier&& value) { SetResource(std::move(value)); return *this;}
81
83
87 inline const ContextDefinition& GetContext() const{ return m_context; }
88 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
89 inline void SetContext(const ContextDefinition& value) { m_contextHasBeenSet = true; m_context = value; }
90 inline void SetContext(ContextDefinition&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
91 inline BatchIsAuthorizedInputItem& WithContext(const ContextDefinition& value) { SetContext(value); return *this;}
92 inline BatchIsAuthorizedInputItem& WithContext(ContextDefinition&& value) { SetContext(std::move(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
BatchIsAuthorizedInputItem & WithAction(ActionIdentifier &&value)
AWS_VERIFIEDPERMISSIONS_API BatchIsAuthorizedInputItem(Aws::Utils::Json::JsonView jsonValue)
BatchIsAuthorizedInputItem & WithResource(EntityIdentifier &&value)
BatchIsAuthorizedInputItem & WithPrincipal(EntityIdentifier &&value)
BatchIsAuthorizedInputItem & WithContext(ContextDefinition &&value)
BatchIsAuthorizedInputItem & WithAction(const ActionIdentifier &value)
BatchIsAuthorizedInputItem & WithPrincipal(const EntityIdentifier &value)
BatchIsAuthorizedInputItem & WithResource(const EntityIdentifier &value)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
BatchIsAuthorizedInputItem & WithContext(const ContextDefinition &value)
AWS_VERIFIEDPERMISSIONS_API BatchIsAuthorizedInputItem & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue