AWS SDK for C++  1.9.132
AWS SDK for C++
TestAuthorizationResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoT
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::Vector<AuthResult>& GetAuthResults() const{ return m_authResults; }
40 
44  inline void SetAuthResults(const Aws::Vector<AuthResult>& value) { m_authResults = value; }
45 
49  inline void SetAuthResults(Aws::Vector<AuthResult>&& value) { m_authResults = std::move(value); }
50 
54  inline TestAuthorizationResult& WithAuthResults(const Aws::Vector<AuthResult>& value) { SetAuthResults(value); return *this;}
55 
59  inline TestAuthorizationResult& WithAuthResults(Aws::Vector<AuthResult>&& value) { SetAuthResults(std::move(value)); return *this;}
60 
64  inline TestAuthorizationResult& AddAuthResults(const AuthResult& value) { m_authResults.push_back(value); return *this; }
65 
69  inline TestAuthorizationResult& AddAuthResults(AuthResult&& value) { m_authResults.push_back(std::move(value)); return *this; }
70 
71  private:
72 
73  Aws::Vector<AuthResult> m_authResults;
74  };
75 
76 } // namespace Model
77 } // namespace IoT
78 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::TestAuthorizationResult::GetAuthResults
const Aws::Vector< AuthResult > & GetAuthResults() const
Definition: TestAuthorizationResult.h:39
AWSVector.h
Aws::IoT::Model::TestAuthorizationResult::TestAuthorizationResult
TestAuthorizationResult()
Aws::IoT::Model::TestAuthorizationResult::AddAuthResults
TestAuthorizationResult & AddAuthResults(AuthResult &&value)
Definition: TestAuthorizationResult.h:69
Aws::IoT::Model::TestAuthorizationResult::SetAuthResults
void SetAuthResults(Aws::Vector< AuthResult > &&value)
Definition: TestAuthorizationResult.h:49
Aws::IoT::Model::TestAuthorizationResult::WithAuthResults
TestAuthorizationResult & WithAuthResults(Aws::Vector< AuthResult > &&value)
Definition: TestAuthorizationResult.h:59
Aws::IoT::Model::TestAuthorizationResult::WithAuthResults
TestAuthorizationResult & WithAuthResults(const Aws::Vector< AuthResult > &value)
Definition: TestAuthorizationResult.h:54
Aws::IoT::Model::TestAuthorizationResult::operator=
TestAuthorizationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::TestAuthorizationResult::SetAuthResults
void SetAuthResults(const Aws::Vector< AuthResult > &value)
Definition: TestAuthorizationResult.h:44
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::AuthResult
Definition: AuthResult.h:37
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
AuthResult.h
Aws::IoT::Model::TestAuthorizationResult::TestAuthorizationResult
TestAuthorizationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::TestAuthorizationResult
Definition: TestAuthorizationResult.h:29
Aws::IoT::Model::TestAuthorizationResult::AddAuthResults
TestAuthorizationResult & AddAuthResults(const AuthResult &value)
Definition: TestAuthorizationResult.h:64
IoT_EXPORTS.h