AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchIsAuthorizedOutputItem.h
1
6#pragma once
7#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
8#include <aws/verifiedpermissions/model/BatchIsAuthorizedInputItem.h>
9#include <aws/verifiedpermissions/model/Decision.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/verifiedpermissions/model/DeterminingPolicyItem.h>
12#include <aws/verifiedpermissions/model/EvaluationErrorItem.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace VerifiedPermissions
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_VERIFIEDPERMISSIONS_API BatchIsAuthorizedOutputItem();
41 AWS_VERIFIEDPERMISSIONS_API BatchIsAuthorizedOutputItem(Aws::Utils::Json::JsonView jsonValue);
42 AWS_VERIFIEDPERMISSIONS_API BatchIsAuthorizedOutputItem& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const BatchIsAuthorizedInputItem& GetRequest() const{ return m_request; }
51 inline bool RequestHasBeenSet() const { return m_requestHasBeenSet; }
52 inline void SetRequest(const BatchIsAuthorizedInputItem& value) { m_requestHasBeenSet = true; m_request = value; }
53 inline void SetRequest(BatchIsAuthorizedInputItem&& value) { m_requestHasBeenSet = true; m_request = std::move(value); }
55 inline BatchIsAuthorizedOutputItem& WithRequest(BatchIsAuthorizedInputItem&& value) { SetRequest(std::move(value)); return *this;}
57
59
63 inline const Decision& GetDecision() const{ return m_decision; }
64 inline bool DecisionHasBeenSet() const { return m_decisionHasBeenSet; }
65 inline void SetDecision(const Decision& value) { m_decisionHasBeenSet = true; m_decision = value; }
66 inline void SetDecision(Decision&& value) { m_decisionHasBeenSet = true; m_decision = std::move(value); }
67 inline BatchIsAuthorizedOutputItem& WithDecision(const Decision& value) { SetDecision(value); return *this;}
68 inline BatchIsAuthorizedOutputItem& WithDecision(Decision&& value) { SetDecision(std::move(value)); return *this;}
70
72
80 inline const Aws::Vector<DeterminingPolicyItem>& GetDeterminingPolicies() const{ return m_determiningPolicies; }
81 inline bool DeterminingPoliciesHasBeenSet() const { return m_determiningPoliciesHasBeenSet; }
82 inline void SetDeterminingPolicies(const Aws::Vector<DeterminingPolicyItem>& value) { m_determiningPoliciesHasBeenSet = true; m_determiningPolicies = value; }
83 inline void SetDeterminingPolicies(Aws::Vector<DeterminingPolicyItem>&& value) { m_determiningPoliciesHasBeenSet = true; m_determiningPolicies = std::move(value); }
86 inline BatchIsAuthorizedOutputItem& AddDeterminingPolicies(const DeterminingPolicyItem& value) { m_determiningPoliciesHasBeenSet = true; m_determiningPolicies.push_back(value); return *this; }
87 inline BatchIsAuthorizedOutputItem& AddDeterminingPolicies(DeterminingPolicyItem&& value) { m_determiningPoliciesHasBeenSet = true; m_determiningPolicies.push_back(std::move(value)); return *this; }
89
91
96 inline const Aws::Vector<EvaluationErrorItem>& GetErrors() const{ return m_errors; }
97 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
98 inline void SetErrors(const Aws::Vector<EvaluationErrorItem>& value) { m_errorsHasBeenSet = true; m_errors = value; }
99 inline void SetErrors(Aws::Vector<EvaluationErrorItem>&& value) { m_errorsHasBeenSet = true; m_errors = std::move(value); }
101 inline BatchIsAuthorizedOutputItem& WithErrors(Aws::Vector<EvaluationErrorItem>&& value) { SetErrors(std::move(value)); return *this;}
102 inline BatchIsAuthorizedOutputItem& AddErrors(const EvaluationErrorItem& value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; }
103 inline BatchIsAuthorizedOutputItem& AddErrors(EvaluationErrorItem&& value) { m_errorsHasBeenSet = true; m_errors.push_back(std::move(value)); return *this; }
105 private:
106
108 bool m_requestHasBeenSet = false;
109
110 Decision m_decision;
111 bool m_decisionHasBeenSet = false;
112
113 Aws::Vector<DeterminingPolicyItem> m_determiningPolicies;
114 bool m_determiningPoliciesHasBeenSet = false;
115
117 bool m_errorsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace VerifiedPermissions
122} // namespace Aws
BatchIsAuthorizedOutputItem & WithRequest(BatchIsAuthorizedInputItem &&value)
BatchIsAuthorizedOutputItem & AddDeterminingPolicies(const DeterminingPolicyItem &value)
void SetDeterminingPolicies(const Aws::Vector< DeterminingPolicyItem > &value)
BatchIsAuthorizedOutputItem & AddDeterminingPolicies(DeterminingPolicyItem &&value)
BatchIsAuthorizedOutputItem & WithRequest(const BatchIsAuthorizedInputItem &value)
BatchIsAuthorizedOutputItem & WithDecision(const Decision &value)
BatchIsAuthorizedOutputItem & WithErrors(const Aws::Vector< EvaluationErrorItem > &value)
BatchIsAuthorizedOutputItem & WithDecision(Decision &&value)
void SetErrors(Aws::Vector< EvaluationErrorItem > &&value)
void SetErrors(const Aws::Vector< EvaluationErrorItem > &value)
const Aws::Vector< EvaluationErrorItem > & GetErrors() const
AWS_VERIFIEDPERMISSIONS_API BatchIsAuthorizedOutputItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDeterminingPolicies(Aws::Vector< DeterminingPolicyItem > &&value)
BatchIsAuthorizedOutputItem & AddErrors(EvaluationErrorItem &&value)
BatchIsAuthorizedOutputItem & WithErrors(Aws::Vector< EvaluationErrorItem > &&value)
const Aws::Vector< DeterminingPolicyItem > & GetDeterminingPolicies() const
BatchIsAuthorizedOutputItem & AddErrors(const EvaluationErrorItem &value)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
BatchIsAuthorizedOutputItem & WithDeterminingPolicies(Aws::Vector< DeterminingPolicyItem > &&value)
BatchIsAuthorizedOutputItem & WithDeterminingPolicies(const Aws::Vector< DeterminingPolicyItem > &value)
AWS_VERIFIEDPERMISSIONS_API BatchIsAuthorizedOutputItem(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue