AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AuthResult.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/model/AuthInfo.h>
9#include <aws/iot/model/Allowed.h>
10#include <aws/iot/model/Denied.h>
11#include <aws/iot/model/AuthDecision.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace IoT
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_IOT_API AuthResult() = default;
40 AWS_IOT_API AuthResult(Aws::Utils::Json::JsonView jsonValue);
43
44
46
49 inline const AuthInfo& GetAuthInfo() const { return m_authInfo; }
50 inline bool AuthInfoHasBeenSet() const { return m_authInfoHasBeenSet; }
51 template<typename AuthInfoT = AuthInfo>
52 void SetAuthInfo(AuthInfoT&& value) { m_authInfoHasBeenSet = true; m_authInfo = std::forward<AuthInfoT>(value); }
53 template<typename AuthInfoT = AuthInfo>
54 AuthResult& WithAuthInfo(AuthInfoT&& value) { SetAuthInfo(std::forward<AuthInfoT>(value)); return *this;}
56
58
61 inline const Allowed& GetAllowed() const { return m_allowed; }
62 inline bool AllowedHasBeenSet() const { return m_allowedHasBeenSet; }
63 template<typename AllowedT = Allowed>
64 void SetAllowed(AllowedT&& value) { m_allowedHasBeenSet = true; m_allowed = std::forward<AllowedT>(value); }
65 template<typename AllowedT = Allowed>
66 AuthResult& WithAllowed(AllowedT&& value) { SetAllowed(std::forward<AllowedT>(value)); return *this;}
68
70
73 inline const Denied& GetDenied() const { return m_denied; }
74 inline bool DeniedHasBeenSet() const { return m_deniedHasBeenSet; }
75 template<typename DeniedT = Denied>
76 void SetDenied(DeniedT&& value) { m_deniedHasBeenSet = true; m_denied = std::forward<DeniedT>(value); }
77 template<typename DeniedT = Denied>
78 AuthResult& WithDenied(DeniedT&& value) { SetDenied(std::forward<DeniedT>(value)); return *this;}
80
82
87 inline AuthDecision GetAuthDecision() const { return m_authDecision; }
88 inline bool AuthDecisionHasBeenSet() const { return m_authDecisionHasBeenSet; }
89 inline void SetAuthDecision(AuthDecision value) { m_authDecisionHasBeenSet = true; m_authDecision = value; }
90 inline AuthResult& WithAuthDecision(AuthDecision value) { SetAuthDecision(value); return *this;}
92
94
97 inline const Aws::Vector<Aws::String>& GetMissingContextValues() const { return m_missingContextValues; }
98 inline bool MissingContextValuesHasBeenSet() const { return m_missingContextValuesHasBeenSet; }
99 template<typename MissingContextValuesT = Aws::Vector<Aws::String>>
100 void SetMissingContextValues(MissingContextValuesT&& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues = std::forward<MissingContextValuesT>(value); }
101 template<typename MissingContextValuesT = Aws::Vector<Aws::String>>
102 AuthResult& WithMissingContextValues(MissingContextValuesT&& value) { SetMissingContextValues(std::forward<MissingContextValuesT>(value)); return *this;}
103 template<typename MissingContextValuesT = Aws::String>
104 AuthResult& AddMissingContextValues(MissingContextValuesT&& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues.emplace_back(std::forward<MissingContextValuesT>(value)); return *this; }
106 private:
107
108 AuthInfo m_authInfo;
109 bool m_authInfoHasBeenSet = false;
110
111 Allowed m_allowed;
112 bool m_allowedHasBeenSet = false;
113
114 Denied m_denied;
115 bool m_deniedHasBeenSet = false;
116
117 AuthDecision m_authDecision{AuthDecision::NOT_SET};
118 bool m_authDecisionHasBeenSet = false;
119
120 Aws::Vector<Aws::String> m_missingContextValues;
121 bool m_missingContextValuesHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace IoT
126} // namespace Aws
void SetAuthInfo(AuthInfoT &&value)
Definition AuthResult.h:52
const Aws::Vector< Aws::String > & GetMissingContextValues() const
Definition AuthResult.h:97
bool AuthDecisionHasBeenSet() const
Definition AuthResult.h:88
AuthResult & WithMissingContextValues(MissingContextValuesT &&value)
Definition AuthResult.h:102
void SetMissingContextValues(MissingContextValuesT &&value)
Definition AuthResult.h:100
AuthResult & WithAllowed(AllowedT &&value)
Definition AuthResult.h:66
bool AllowedHasBeenSet() const
Definition AuthResult.h:62
bool AuthInfoHasBeenSet() const
Definition AuthResult.h:50
bool MissingContextValuesHasBeenSet() const
Definition AuthResult.h:98
AWS_IOT_API AuthResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API AuthResult(Aws::Utils::Json::JsonView jsonValue)
bool DeniedHasBeenSet() const
Definition AuthResult.h:74
const AuthInfo & GetAuthInfo() const
Definition AuthResult.h:49
void SetAuthDecision(AuthDecision value)
Definition AuthResult.h:89
void SetAllowed(AllowedT &&value)
Definition AuthResult.h:64
AWS_IOT_API AuthResult()=default
const Denied & GetDenied() const
Definition AuthResult.h:73
const Allowed & GetAllowed() const
Definition AuthResult.h:61
AuthResult & WithAuthDecision(AuthDecision value)
Definition AuthResult.h:90
AuthResult & AddMissingContextValues(MissingContextValuesT &&value)
Definition AuthResult.h:104
AuthResult & WithDenied(DeniedT &&value)
Definition AuthResult.h:78
AuthResult & WithAuthInfo(AuthInfoT &&value)
Definition AuthResult.h:54
AuthDecision GetAuthDecision() const
Definition AuthResult.h:87
void SetDenied(DeniedT &&value)
Definition AuthResult.h:76
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue