AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IsAuthorizedWithTokenResult.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/verifiedpermissions/model/EntityIdentifier.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/verifiedpermissions/model/DeterminingPolicyItem.h>
13#include <aws/verifiedpermissions/model/EvaluationErrorItem.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace VerifiedPermissions
29{
30namespace Model
31{
33 {
34 public:
35 AWS_VERIFIEDPERMISSIONS_API IsAuthorizedWithTokenResult();
38
39
41
45 inline const Decision& GetDecision() const{ return m_decision; }
46 inline void SetDecision(const Decision& value) { m_decision = value; }
47 inline void SetDecision(Decision&& value) { m_decision = std::move(value); }
48 inline IsAuthorizedWithTokenResult& WithDecision(const Decision& value) { SetDecision(value); return *this;}
49 inline IsAuthorizedWithTokenResult& WithDecision(Decision&& value) { SetDecision(std::move(value)); return *this;}
51
53
61 inline const Aws::Vector<DeterminingPolicyItem>& GetDeterminingPolicies() const{ return m_determiningPolicies; }
62 inline void SetDeterminingPolicies(const Aws::Vector<DeterminingPolicyItem>& value) { m_determiningPolicies = value; }
63 inline void SetDeterminingPolicies(Aws::Vector<DeterminingPolicyItem>&& value) { m_determiningPolicies = std::move(value); }
66 inline IsAuthorizedWithTokenResult& AddDeterminingPolicies(const DeterminingPolicyItem& value) { m_determiningPolicies.push_back(value); return *this; }
67 inline IsAuthorizedWithTokenResult& AddDeterminingPolicies(DeterminingPolicyItem&& value) { m_determiningPolicies.push_back(std::move(value)); return *this; }
69
71
76 inline const Aws::Vector<EvaluationErrorItem>& GetErrors() const{ return m_errors; }
77 inline void SetErrors(const Aws::Vector<EvaluationErrorItem>& value) { m_errors = value; }
78 inline void SetErrors(Aws::Vector<EvaluationErrorItem>&& value) { m_errors = std::move(value); }
80 inline IsAuthorizedWithTokenResult& WithErrors(Aws::Vector<EvaluationErrorItem>&& value) { SetErrors(std::move(value)); return *this;}
81 inline IsAuthorizedWithTokenResult& AddErrors(const EvaluationErrorItem& value) { m_errors.push_back(value); return *this; }
82 inline IsAuthorizedWithTokenResult& AddErrors(EvaluationErrorItem&& value) { m_errors.push_back(std::move(value)); return *this; }
84
86
89 inline const EntityIdentifier& GetPrincipal() const{ return m_principal; }
90 inline void SetPrincipal(const EntityIdentifier& value) { m_principal = value; }
91 inline void SetPrincipal(EntityIdentifier&& value) { m_principal = std::move(value); }
92 inline IsAuthorizedWithTokenResult& WithPrincipal(const EntityIdentifier& value) { SetPrincipal(value); return *this;}
93 inline IsAuthorizedWithTokenResult& WithPrincipal(EntityIdentifier&& value) { SetPrincipal(std::move(value)); return *this;}
95
97
98 inline const Aws::String& GetRequestId() const{ return m_requestId; }
99 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
100 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
101 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
102 inline IsAuthorizedWithTokenResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
103 inline IsAuthorizedWithTokenResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
104 inline IsAuthorizedWithTokenResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
106 private:
107
108 Decision m_decision;
109
110 Aws::Vector<DeterminingPolicyItem> m_determiningPolicies;
111
113
114 EntityIdentifier m_principal;
115
116 Aws::String m_requestId;
117 };
118
119} // namespace Model
120} // namespace VerifiedPermissions
121} // namespace Aws
AWS_VERIFIEDPERMISSIONS_API IsAuthorizedWithTokenResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
IsAuthorizedWithTokenResult & WithRequestId(const char *value)
IsAuthorizedWithTokenResult & AddDeterminingPolicies(const DeterminingPolicyItem &value)
IsAuthorizedWithTokenResult & AddErrors(EvaluationErrorItem &&value)
void SetErrors(const Aws::Vector< EvaluationErrorItem > &value)
IsAuthorizedWithTokenResult & AddErrors(const EvaluationErrorItem &value)
void SetDeterminingPolicies(const Aws::Vector< DeterminingPolicyItem > &value)
const Aws::Vector< DeterminingPolicyItem > & GetDeterminingPolicies() const
const Aws::Vector< EvaluationErrorItem > & GetErrors() const
IsAuthorizedWithTokenResult & WithDeterminingPolicies(Aws::Vector< DeterminingPolicyItem > &&value)
IsAuthorizedWithTokenResult & WithErrors(const Aws::Vector< EvaluationErrorItem > &value)
IsAuthorizedWithTokenResult & WithRequestId(Aws::String &&value)
void SetDeterminingPolicies(Aws::Vector< DeterminingPolicyItem > &&value)
AWS_VERIFIEDPERMISSIONS_API IsAuthorizedWithTokenResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
IsAuthorizedWithTokenResult & WithDecision(Decision &&value)
IsAuthorizedWithTokenResult & WithDeterminingPolicies(const Aws::Vector< DeterminingPolicyItem > &value)
void SetErrors(Aws::Vector< EvaluationErrorItem > &&value)
IsAuthorizedWithTokenResult & AddDeterminingPolicies(DeterminingPolicyItem &&value)
IsAuthorizedWithTokenResult & WithPrincipal(EntityIdentifier &&value)
IsAuthorizedWithTokenResult & WithErrors(Aws::Vector< EvaluationErrorItem > &&value)
IsAuthorizedWithTokenResult & WithPrincipal(const EntityIdentifier &value)
IsAuthorizedWithTokenResult & WithRequestId(const Aws::String &value)
IsAuthorizedWithTokenResult & WithDecision(const Decision &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue