AWS SDK for C++  1.9.132
AWS SDK for C++
AuthResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <aws/iot/model/Denied.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace IoT
27 {
28 namespace Model
29 {
30 
37  {
38  public:
43 
44 
48  inline const AuthInfo& GetAuthInfo() const{ return m_authInfo; }
49 
53  inline bool AuthInfoHasBeenSet() const { return m_authInfoHasBeenSet; }
54 
58  inline void SetAuthInfo(const AuthInfo& value) { m_authInfoHasBeenSet = true; m_authInfo = value; }
59 
63  inline void SetAuthInfo(AuthInfo&& value) { m_authInfoHasBeenSet = true; m_authInfo = std::move(value); }
64 
68  inline AuthResult& WithAuthInfo(const AuthInfo& value) { SetAuthInfo(value); return *this;}
69 
73  inline AuthResult& WithAuthInfo(AuthInfo&& value) { SetAuthInfo(std::move(value)); return *this;}
74 
75 
79  inline const Allowed& GetAllowed() const{ return m_allowed; }
80 
84  inline bool AllowedHasBeenSet() const { return m_allowedHasBeenSet; }
85 
89  inline void SetAllowed(const Allowed& value) { m_allowedHasBeenSet = true; m_allowed = value; }
90 
94  inline void SetAllowed(Allowed&& value) { m_allowedHasBeenSet = true; m_allowed = std::move(value); }
95 
99  inline AuthResult& WithAllowed(const Allowed& value) { SetAllowed(value); return *this;}
100 
104  inline AuthResult& WithAllowed(Allowed&& value) { SetAllowed(std::move(value)); return *this;}
105 
106 
110  inline const Denied& GetDenied() const{ return m_denied; }
111 
115  inline bool DeniedHasBeenSet() const { return m_deniedHasBeenSet; }
116 
120  inline void SetDenied(const Denied& value) { m_deniedHasBeenSet = true; m_denied = value; }
121 
125  inline void SetDenied(Denied&& value) { m_deniedHasBeenSet = true; m_denied = std::move(value); }
126 
130  inline AuthResult& WithDenied(const Denied& value) { SetDenied(value); return *this;}
131 
135  inline AuthResult& WithDenied(Denied&& value) { SetDenied(std::move(value)); return *this;}
136 
137 
143  inline const AuthDecision& GetAuthDecision() const{ return m_authDecision; }
144 
150  inline bool AuthDecisionHasBeenSet() const { return m_authDecisionHasBeenSet; }
151 
157  inline void SetAuthDecision(const AuthDecision& value) { m_authDecisionHasBeenSet = true; m_authDecision = value; }
158 
164  inline void SetAuthDecision(AuthDecision&& value) { m_authDecisionHasBeenSet = true; m_authDecision = std::move(value); }
165 
171  inline AuthResult& WithAuthDecision(const AuthDecision& value) { SetAuthDecision(value); return *this;}
172 
178  inline AuthResult& WithAuthDecision(AuthDecision&& value) { SetAuthDecision(std::move(value)); return *this;}
179 
180 
184  inline const Aws::Vector<Aws::String>& GetMissingContextValues() const{ return m_missingContextValues; }
185 
189  inline bool MissingContextValuesHasBeenSet() const { return m_missingContextValuesHasBeenSet; }
190 
194  inline void SetMissingContextValues(const Aws::Vector<Aws::String>& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues = value; }
195 
199  inline void SetMissingContextValues(Aws::Vector<Aws::String>&& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues = std::move(value); }
200 
204  inline AuthResult& WithMissingContextValues(const Aws::Vector<Aws::String>& value) { SetMissingContextValues(value); return *this;}
205 
209  inline AuthResult& WithMissingContextValues(Aws::Vector<Aws::String>&& value) { SetMissingContextValues(std::move(value)); return *this;}
210 
214  inline AuthResult& AddMissingContextValues(const Aws::String& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues.push_back(value); return *this; }
215 
219  inline AuthResult& AddMissingContextValues(Aws::String&& value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues.push_back(std::move(value)); return *this; }
220 
224  inline AuthResult& AddMissingContextValues(const char* value) { m_missingContextValuesHasBeenSet = true; m_missingContextValues.push_back(value); return *this; }
225 
226  private:
227 
228  AuthInfo m_authInfo;
229  bool m_authInfoHasBeenSet;
230 
231  Allowed m_allowed;
232  bool m_allowedHasBeenSet;
233 
234  Denied m_denied;
235  bool m_deniedHasBeenSet;
236 
237  AuthDecision m_authDecision;
238  bool m_authDecisionHasBeenSet;
239 
240  Aws::Vector<Aws::String> m_missingContextValues;
241  bool m_missingContextValuesHasBeenSet;
242  };
243 
244 } // namespace Model
245 } // namespace IoT
246 } // namespace Aws
Aws::IoT::Model::AuthResult::SetAuthDecision
void SetAuthDecision(AuthDecision &&value)
Definition: AuthResult.h:164
Aws::IoT::Model::AuthResult::WithAllowed
AuthResult & WithAllowed(Allowed &&value)
Definition: AuthResult.h:104
Aws::IoT::Model::AuthResult::WithAuthDecision
AuthResult & WithAuthDecision(AuthDecision &&value)
Definition: AuthResult.h:178
Aws::IoT::Model::AuthResult::SetAllowed
void SetAllowed(const Allowed &value)
Definition: AuthResult.h:89
Aws::IoT::Model::AuthResult::GetAuthInfo
const AuthInfo & GetAuthInfo() const
Definition: AuthResult.h:48
Aws::IoT::Model::AuthResult::GetAuthDecision
const AuthDecision & GetAuthDecision() const
Definition: AuthResult.h:143
Aws::IoT::Model::AuthResult::SetMissingContextValues
void SetMissingContextValues(const Aws::Vector< Aws::String > &value)
Definition: AuthResult.h:194
Aws::IoT::Model::AuthResult::AddMissingContextValues
AuthResult & AddMissingContextValues(Aws::String &&value)
Definition: AuthResult.h:219
Aws::IoT::Model::AuthResult::SetDenied
void SetDenied(const Denied &value)
Definition: AuthResult.h:120
AuthDecision.h
Aws::IoT::Model::Allowed
Definition: Allowed.h:33
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::AuthResult::WithAllowed
AuthResult & WithAllowed(const Allowed &value)
Definition: AuthResult.h:99
Aws::IoT::Model::AuthResult::DeniedHasBeenSet
bool DeniedHasBeenSet() const
Definition: AuthResult.h:115
AWSVector.h
Aws::IoT::Model::AuthResult::AuthDecisionHasBeenSet
bool AuthDecisionHasBeenSet() const
Definition: AuthResult.h:150
Aws::IoT::Model::AuthResult::WithMissingContextValues
AuthResult & WithMissingContextValues(Aws::Vector< Aws::String > &&value)
Definition: AuthResult.h:209
Aws::IoT::Model::AuthInfo
Definition: AuthInfo.h:34
Aws::IoT::Model::AuthResult::WithDenied
AuthResult & WithDenied(Denied &&value)
Definition: AuthResult.h:135
Aws::IoT::Model::AuthResult::SetAuthDecision
void SetAuthDecision(const AuthDecision &value)
Definition: AuthResult.h:157
Aws::IoT::Model::AuthResult::WithAuthInfo
AuthResult & WithAuthInfo(AuthInfo &&value)
Definition: AuthResult.h:73
Aws::IoT::Model::AuthResult::SetAuthInfo
void SetAuthInfo(const AuthInfo &value)
Definition: AuthResult.h:58
Aws::IoT::Model::AuthResult::SetDenied
void SetDenied(Denied &&value)
Definition: AuthResult.h:125
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoT::Model::AuthResult::AuthInfoHasBeenSet
bool AuthInfoHasBeenSet() const
Definition: AuthResult.h:53
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::AuthResult::SetAuthInfo
void SetAuthInfo(AuthInfo &&value)
Definition: AuthResult.h:63
Aws::IoT::Model::AuthResult::MissingContextValuesHasBeenSet
bool MissingContextValuesHasBeenSet() const
Definition: AuthResult.h:189
Aws::IoT::Model::AuthResult::AddMissingContextValues
AuthResult & AddMissingContextValues(const char *value)
Definition: AuthResult.h:224
Aws::IoT::Model::AuthResult::GetMissingContextValues
const Aws::Vector< Aws::String > & GetMissingContextValues() const
Definition: AuthResult.h:184
Aws::IoT::Model::AuthResult::WithAuthInfo
AuthResult & WithAuthInfo(const AuthInfo &value)
Definition: AuthResult.h:68
Aws::IoT::Model::AuthResult::GetAllowed
const Allowed & GetAllowed() const
Definition: AuthResult.h:79
Aws::IoT::Model::AuthResult::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::AuthResult::WithDenied
AuthResult & WithDenied(const Denied &value)
Definition: AuthResult.h:130
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::AuthResult::SetMissingContextValues
void SetMissingContextValues(Aws::Vector< Aws::String > &&value)
Definition: AuthResult.h:199
Aws::IoT::Model::AuthResult::AllowedHasBeenSet
bool AllowedHasBeenSet() const
Definition: AuthResult.h:84
Aws::IoT::Model::AuthResult
Definition: AuthResult.h:37
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::AuthDecision
AuthDecision
Definition: AuthDecision.h:17
Aws::IoT::Model::Denied
Definition: Denied.h:33
Aws::IoT::Model::AuthResult::AuthResult
AuthResult()
Aws::IoT::Model::AuthResult::GetDenied
const Denied & GetDenied() const
Definition: AuthResult.h:110
Aws::IoT::Model::AuthResult::AddMissingContextValues
AuthResult & AddMissingContextValues(const Aws::String &value)
Definition: AuthResult.h:214
Aws::IoT::Model::AuthResult::WithMissingContextValues
AuthResult & WithMissingContextValues(const Aws::Vector< Aws::String > &value)
Definition: AuthResult.h:204
AuthInfo.h
Aws::IoT::Model::AuthResult::operator=
AuthResult & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::AuthResult::AuthResult
AuthResult(Aws::Utils::Json::JsonView jsonValue)
Denied.h
Allowed.h
IoT_EXPORTS.h
Aws::IoT::Model::AuthResult::WithAuthDecision
AuthResult & WithAuthDecision(const AuthDecision &value)
Definition: AuthResult.h:171
Aws::IoT::Model::AuthResult::SetAllowed
void SetAllowed(Allowed &&value)
Definition: AuthResult.h:94