AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAuthInfo(const AuthInfo& value) { m_authInfoHasBeenSet = true; m_authInfo = value; }
52 inline void SetAuthInfo(AuthInfo&& value) { m_authInfoHasBeenSet = true; m_authInfo = std::move(value); }
53 inline AuthResult& WithAuthInfo(const AuthInfo& value) { SetAuthInfo(value); return *this;}
54 inline AuthResult& WithAuthInfo(AuthInfo&& value) { SetAuthInfo(std::move(value)); return *this;}
56
58
61 inline const Allowed& GetAllowed() const{ return m_allowed; }
62 inline bool AllowedHasBeenSet() const { return m_allowedHasBeenSet; }
63 inline void SetAllowed(const Allowed& value) { m_allowedHasBeenSet = true; m_allowed = value; }
64 inline void SetAllowed(Allowed&& value) { m_allowedHasBeenSet = true; m_allowed = std::move(value); }
65 inline AuthResult& WithAllowed(const Allowed& value) { SetAllowed(value); return *this;}
66 inline AuthResult& WithAllowed(Allowed&& value) { SetAllowed(std::move(value)); return *this;}
68
70
73 inline const Denied& GetDenied() const{ return m_denied; }
74 inline bool DeniedHasBeenSet() const { return m_deniedHasBeenSet; }
75 inline void SetDenied(const Denied& value) { m_deniedHasBeenSet = true; m_denied = value; }
76 inline void SetDenied(Denied&& value) { m_deniedHasBeenSet = true; m_denied = std::move(value); }
77 inline AuthResult& WithDenied(const Denied& value) { SetDenied(value); return *this;}
78 inline AuthResult& WithDenied(Denied&& value) { SetDenied(std::move(value)); return *this;}
80
82
87 inline const AuthDecision& GetAuthDecision() const{ return m_authDecision; }
88 inline bool AuthDecisionHasBeenSet() const { return m_authDecisionHasBeenSet; }
89 inline void SetAuthDecision(const AuthDecision& value) { m_authDecisionHasBeenSet = true; m_authDecision = value; }
90 inline void SetAuthDecision(AuthDecision&& value) { m_authDecisionHasBeenSet = true; m_authDecision = std::move(value); }
91 inline AuthResult& WithAuthDecision(const AuthDecision& value) { SetAuthDecision(value); return *this;}
92 inline AuthResult& WithAuthDecision(AuthDecision&& value) { SetAuthDecision(std::move(value)); return *this;}
94
96
99 inline const Aws::Vector<Aws::String>& GetMissingContextValues() const{ return m_missingContextValues; }
100 inline bool MissingContextValuesHasBeenSet() const { return m_missingContextValuesHasBeenSet; }
101 inline void SetMissingContextValues(const Aws::Vector<Aws::String>& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues = value; }
102 inline void SetMissingContextValues(Aws::Vector<Aws::String>&& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues = std::move(value); }
104 inline AuthResult& WithMissingContextValues(Aws::Vector<Aws::String>&& value) { SetMissingContextValues(std::move(value)); return *this;}
105 inline AuthResult& AddMissingContextValues(const Aws::String& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues.push_back(value); return *this; }
106 inline AuthResult& AddMissingContextValues(Aws::String&& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues.push_back(std::move(value)); return *this; }
107 inline AuthResult& AddMissingContextValues(const char* value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues.push_back(value); return *this; }
109 private:
110
111 AuthInfo m_authInfo;
112 bool m_authInfoHasBeenSet = false;
113
114 Allowed m_allowed;
115 bool m_allowedHasBeenSet = false;
116
117 Denied m_denied;
118 bool m_deniedHasBeenSet = false;
119
120 AuthDecision m_authDecision;
121 bool m_authDecisionHasBeenSet = false;
122
123 Aws::Vector<Aws::String> m_missingContextValues;
124 bool m_missingContextValuesHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace IoT
129} // namespace Aws
void SetMissingContextValues(const Aws::Vector< Aws::String > &value)
Definition AuthResult.h:101
void SetMissingContextValues(Aws::Vector< Aws::String > &&value)
Definition AuthResult.h:102
AuthResult & WithDenied(const Denied &value)
Definition AuthResult.h:77
AuthResult & WithAuthInfo(const AuthInfo &value)
Definition AuthResult.h:53
const Aws::Vector< Aws::String > & GetMissingContextValues() const
Definition AuthResult.h:99
bool AuthDecisionHasBeenSet() const
Definition AuthResult.h:88
AuthResult & AddMissingContextValues(const Aws::String &value)
Definition AuthResult.h:105
void SetDenied(Denied &&value)
Definition AuthResult.h:76
AuthResult & WithAuthDecision(const AuthDecision &value)
Definition AuthResult.h:91
AuthResult & WithDenied(Denied &&value)
Definition AuthResult.h:78
bool AllowedHasBeenSet() const
Definition AuthResult.h:62
bool AuthInfoHasBeenSet() const
Definition AuthResult.h:50
AuthResult & WithAllowed(Allowed &&value)
Definition AuthResult.h:66
void SetAuthDecision(AuthDecision &&value)
Definition AuthResult.h:90
bool MissingContextValuesHasBeenSet() const
Definition AuthResult.h:100
const AuthDecision & GetAuthDecision() const
Definition AuthResult.h:87
void SetAuthDecision(const AuthDecision &value)
Definition AuthResult.h:89
AWS_IOT_API AuthResult & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDenied(const Denied &value)
Definition AuthResult.h:75
AWS_IOT_API AuthResult(Aws::Utils::Json::JsonView jsonValue)
AuthResult & WithAuthInfo(AuthInfo &&value)
Definition AuthResult.h:54
AuthResult & AddMissingContextValues(Aws::String &&value)
Definition AuthResult.h:106
bool DeniedHasBeenSet() const
Definition AuthResult.h:74
const AuthInfo & GetAuthInfo() const
Definition AuthResult.h:49
AuthResult & AddMissingContextValues(const char *value)
Definition AuthResult.h:107
AuthResult & WithMissingContextValues(const Aws::Vector< Aws::String > &value)
Definition AuthResult.h:103
void SetAllowed(const Allowed &value)
Definition AuthResult.h:63
AuthResult & WithAllowed(const Allowed &value)
Definition AuthResult.h:65
void SetAuthInfo(AuthInfo &&value)
Definition AuthResult.h:52
const Denied & GetDenied() const
Definition AuthResult.h:73
AuthResult & WithAuthDecision(AuthDecision &&value)
Definition AuthResult.h:92
const Allowed & GetAllowed() const
Definition AuthResult.h:61
void SetAuthInfo(const AuthInfo &value)
Definition AuthResult.h:51
void SetAllowed(Allowed &&value)
Definition AuthResult.h:64
AuthResult & WithMissingContextValues(Aws::Vector< Aws::String > &&value)
Definition AuthResult.h:104
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue