AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TestInvokeAuthorizerResult.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace IoT
25{
26namespace Model
27{
29 {
30 public:
34
35
37
40 inline bool GetIsAuthenticated() const{ return m_isAuthenticated; }
41 inline void SetIsAuthenticated(bool value) { m_isAuthenticated = value; }
42 inline TestInvokeAuthorizerResult& WithIsAuthenticated(bool value) { SetIsAuthenticated(value); return *this;}
44
46
49 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
50 inline void SetPrincipalId(const Aws::String& value) { m_principalId = value; }
51 inline void SetPrincipalId(Aws::String&& value) { m_principalId = std::move(value); }
52 inline void SetPrincipalId(const char* value) { m_principalId.assign(value); }
53 inline TestInvokeAuthorizerResult& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
54 inline TestInvokeAuthorizerResult& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
55 inline TestInvokeAuthorizerResult& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
57
59
62 inline const Aws::Vector<Aws::String>& GetPolicyDocuments() const{ return m_policyDocuments; }
63 inline void SetPolicyDocuments(const Aws::Vector<Aws::String>& value) { m_policyDocuments = value; }
64 inline void SetPolicyDocuments(Aws::Vector<Aws::String>&& value) { m_policyDocuments = std::move(value); }
67 inline TestInvokeAuthorizerResult& AddPolicyDocuments(const Aws::String& value) { m_policyDocuments.push_back(value); return *this; }
68 inline TestInvokeAuthorizerResult& AddPolicyDocuments(Aws::String&& value) { m_policyDocuments.push_back(std::move(value)); return *this; }
69 inline TestInvokeAuthorizerResult& AddPolicyDocuments(const char* value) { m_policyDocuments.push_back(value); return *this; }
71
73
77 inline int GetRefreshAfterInSeconds() const{ return m_refreshAfterInSeconds; }
78 inline void SetRefreshAfterInSeconds(int value) { m_refreshAfterInSeconds = value; }
81
83
86 inline int GetDisconnectAfterInSeconds() const{ return m_disconnectAfterInSeconds; }
87 inline void SetDisconnectAfterInSeconds(int value) { m_disconnectAfterInSeconds = value; }
90
92
93 inline const Aws::String& GetRequestId() const{ return m_requestId; }
94 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
95 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
96 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
97 inline TestInvokeAuthorizerResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
98 inline TestInvokeAuthorizerResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
99 inline TestInvokeAuthorizerResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
101 private:
102
103 bool m_isAuthenticated;
104
105 Aws::String m_principalId;
106
107 Aws::Vector<Aws::String> m_policyDocuments;
108
109 int m_refreshAfterInSeconds;
110
111 int m_disconnectAfterInSeconds;
112
113 Aws::String m_requestId;
114 };
115
116} // namespace Model
117} // namespace IoT
118} // namespace Aws
TestInvokeAuthorizerResult & WithPrincipalId(Aws::String &&value)
AWS_IOT_API TestInvokeAuthorizerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_IOT_API TestInvokeAuthorizerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
TestInvokeAuthorizerResult & WithIsAuthenticated(bool value)
void SetPolicyDocuments(const Aws::Vector< Aws::String > &value)
TestInvokeAuthorizerResult & AddPolicyDocuments(const char *value)
TestInvokeAuthorizerResult & WithPrincipalId(const char *value)
TestInvokeAuthorizerResult & WithRequestId(const char *value)
TestInvokeAuthorizerResult & AddPolicyDocuments(Aws::String &&value)
void SetPolicyDocuments(Aws::Vector< Aws::String > &&value)
TestInvokeAuthorizerResult & WithDisconnectAfterInSeconds(int value)
TestInvokeAuthorizerResult & WithRequestId(const Aws::String &value)
TestInvokeAuthorizerResult & AddPolicyDocuments(const Aws::String &value)
TestInvokeAuthorizerResult & WithRefreshAfterInSeconds(int value)
TestInvokeAuthorizerResult & WithRequestId(Aws::String &&value)
TestInvokeAuthorizerResult & WithPolicyDocuments(const Aws::Vector< Aws::String > &value)
TestInvokeAuthorizerResult & WithPrincipalId(const Aws::String &value)
TestInvokeAuthorizerResult & WithPolicyDocuments(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetPolicyDocuments() 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