AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IsAuthorizedResult.h
1
6#pragma once
7#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
8#include <aws/verifiedpermissions/model/Decision.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/verifiedpermissions/model/DeterminingPolicyItem.h>
12#include <aws/verifiedpermissions/model/EvaluationErrorItem.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace VerifiedPermissions
28{
29namespace Model
30{
32 {
33 public:
34 AWS_VERIFIEDPERMISSIONS_API IsAuthorizedResult();
37
38
40
44 inline const Decision& GetDecision() const{ return m_decision; }
45 inline void SetDecision(const Decision& value) { m_decision = value; }
46 inline void SetDecision(Decision&& value) { m_decision = std::move(value); }
47 inline IsAuthorizedResult& WithDecision(const Decision& value) { SetDecision(value); return *this;}
48 inline IsAuthorizedResult& WithDecision(Decision&& value) { SetDecision(std::move(value)); return *this;}
50
52
60 inline const Aws::Vector<DeterminingPolicyItem>& GetDeterminingPolicies() const{ return m_determiningPolicies; }
61 inline void SetDeterminingPolicies(const Aws::Vector<DeterminingPolicyItem>& value) { m_determiningPolicies = value; }
62 inline void SetDeterminingPolicies(Aws::Vector<DeterminingPolicyItem>&& value) { m_determiningPolicies = std::move(value); }
65 inline IsAuthorizedResult& AddDeterminingPolicies(const DeterminingPolicyItem& value) { m_determiningPolicies.push_back(value); return *this; }
66 inline IsAuthorizedResult& AddDeterminingPolicies(DeterminingPolicyItem&& value) { m_determiningPolicies.push_back(std::move(value)); return *this; }
68
70
75 inline const Aws::Vector<EvaluationErrorItem>& GetErrors() const{ return m_errors; }
76 inline void SetErrors(const Aws::Vector<EvaluationErrorItem>& value) { m_errors = value; }
77 inline void SetErrors(Aws::Vector<EvaluationErrorItem>&& value) { m_errors = std::move(value); }
78 inline IsAuthorizedResult& WithErrors(const Aws::Vector<EvaluationErrorItem>& value) { SetErrors(value); return *this;}
79 inline IsAuthorizedResult& WithErrors(Aws::Vector<EvaluationErrorItem>&& value) { SetErrors(std::move(value)); return *this;}
80 inline IsAuthorizedResult& AddErrors(const EvaluationErrorItem& value) { m_errors.push_back(value); return *this; }
81 inline IsAuthorizedResult& AddErrors(EvaluationErrorItem&& value) { m_errors.push_back(std::move(value)); return *this; }
83
85
86 inline const Aws::String& GetRequestId() const{ return m_requestId; }
87 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
88 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
89 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
90 inline IsAuthorizedResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
91 inline IsAuthorizedResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
92 inline IsAuthorizedResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
94 private:
95
96 Decision m_decision;
97
98 Aws::Vector<DeterminingPolicyItem> m_determiningPolicies;
99
101
102 Aws::String m_requestId;
103 };
104
105} // namespace Model
106} // namespace VerifiedPermissions
107} // namespace Aws
IsAuthorizedResult & WithErrors(Aws::Vector< EvaluationErrorItem > &&value)
const Aws::Vector< DeterminingPolicyItem > & GetDeterminingPolicies() const
const Aws::Vector< EvaluationErrorItem > & GetErrors() const
IsAuthorizedResult & WithDeterminingPolicies(const Aws::Vector< DeterminingPolicyItem > &value)
IsAuthorizedResult & AddDeterminingPolicies(const DeterminingPolicyItem &value)
void SetDeterminingPolicies(Aws::Vector< DeterminingPolicyItem > &&value)
IsAuthorizedResult & WithDecision(const Decision &value)
AWS_VERIFIEDPERMISSIONS_API IsAuthorizedResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
IsAuthorizedResult & WithRequestId(const Aws::String &value)
IsAuthorizedResult & AddErrors(EvaluationErrorItem &&value)
AWS_VERIFIEDPERMISSIONS_API IsAuthorizedResult()
IsAuthorizedResult & WithDecision(Decision &&value)
void SetErrors(const Aws::Vector< EvaluationErrorItem > &value)
IsAuthorizedResult & AddDeterminingPolicies(DeterminingPolicyItem &&value)
IsAuthorizedResult & WithDeterminingPolicies(Aws::Vector< DeterminingPolicyItem > &&value)
void SetErrors(Aws::Vector< EvaluationErrorItem > &&value)
void SetDeterminingPolicies(const Aws::Vector< DeterminingPolicyItem > &value)
IsAuthorizedResult & WithRequestId(const char *value)
IsAuthorizedResult & AddErrors(const EvaluationErrorItem &value)
IsAuthorizedResult & WithErrors(const Aws::Vector< EvaluationErrorItem > &value)
IsAuthorizedResult & WithRequestId(Aws::String &&value)
AWS_VERIFIEDPERMISSIONS_API IsAuthorizedResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue