AWS SDK for C++  1.9.153
AWS SDK for C++
TestInvokeAuthorizerResult.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 bool GetIsAuthenticated() const{ return m_isAuthenticated; }
40 
44  inline void SetIsAuthenticated(bool value) { m_isAuthenticated = value; }
45 
49  inline TestInvokeAuthorizerResult& WithIsAuthenticated(bool value) { SetIsAuthenticated(value); return *this;}
50 
51 
55  inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
56 
60  inline void SetPrincipalId(const Aws::String& value) { m_principalId = value; }
61 
65  inline void SetPrincipalId(Aws::String&& value) { m_principalId = std::move(value); }
66 
70  inline void SetPrincipalId(const char* value) { m_principalId.assign(value); }
71 
75  inline TestInvokeAuthorizerResult& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
76 
80  inline TestInvokeAuthorizerResult& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
81 
85  inline TestInvokeAuthorizerResult& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
86 
87 
91  inline const Aws::Vector<Aws::String>& GetPolicyDocuments() const{ return m_policyDocuments; }
92 
96  inline void SetPolicyDocuments(const Aws::Vector<Aws::String>& value) { m_policyDocuments = value; }
97 
101  inline void SetPolicyDocuments(Aws::Vector<Aws::String>&& value) { m_policyDocuments = std::move(value); }
102 
106  inline TestInvokeAuthorizerResult& WithPolicyDocuments(const Aws::Vector<Aws::String>& value) { SetPolicyDocuments(value); return *this;}
107 
111  inline TestInvokeAuthorizerResult& WithPolicyDocuments(Aws::Vector<Aws::String>&& value) { SetPolicyDocuments(std::move(value)); return *this;}
112 
116  inline TestInvokeAuthorizerResult& AddPolicyDocuments(const Aws::String& value) { m_policyDocuments.push_back(value); return *this; }
117 
121  inline TestInvokeAuthorizerResult& AddPolicyDocuments(Aws::String&& value) { m_policyDocuments.push_back(std::move(value)); return *this; }
122 
126  inline TestInvokeAuthorizerResult& AddPolicyDocuments(const char* value) { m_policyDocuments.push_back(value); return *this; }
127 
128 
133  inline int GetRefreshAfterInSeconds() const{ return m_refreshAfterInSeconds; }
134 
139  inline void SetRefreshAfterInSeconds(int value) { m_refreshAfterInSeconds = value; }
140 
145  inline TestInvokeAuthorizerResult& WithRefreshAfterInSeconds(int value) { SetRefreshAfterInSeconds(value); return *this;}
146 
147 
151  inline int GetDisconnectAfterInSeconds() const{ return m_disconnectAfterInSeconds; }
152 
156  inline void SetDisconnectAfterInSeconds(int value) { m_disconnectAfterInSeconds = value; }
157 
161  inline TestInvokeAuthorizerResult& WithDisconnectAfterInSeconds(int value) { SetDisconnectAfterInSeconds(value); return *this;}
162 
163  private:
164 
165  bool m_isAuthenticated;
166 
167  Aws::String m_principalId;
168 
169  Aws::Vector<Aws::String> m_policyDocuments;
170 
171  int m_refreshAfterInSeconds;
172 
173  int m_disconnectAfterInSeconds;
174  };
175 
176 } // namespace Model
177 } // namespace IoT
178 } // namespace Aws
Aws::IoT::Model::TestInvokeAuthorizerResult::TestInvokeAuthorizerResult
TestInvokeAuthorizerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::IoT::Model::TestInvokeAuthorizerResult::WithDisconnectAfterInSeconds
TestInvokeAuthorizerResult & WithDisconnectAfterInSeconds(int value)
Definition: TestInvokeAuthorizerResult.h:161
Aws::IoT::Model::TestInvokeAuthorizerResult::SetDisconnectAfterInSeconds
void SetDisconnectAfterInSeconds(int value)
Definition: TestInvokeAuthorizerResult.h:156
Aws::IoT::Model::TestInvokeAuthorizerResult::operator=
TestInvokeAuthorizerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::TestInvokeAuthorizerResult::WithPrincipalId
TestInvokeAuthorizerResult & WithPrincipalId(Aws::String &&value)
Definition: TestInvokeAuthorizerResult.h:80
Aws::IoT::Model::TestInvokeAuthorizerResult::WithPolicyDocuments
TestInvokeAuthorizerResult & WithPolicyDocuments(const Aws::Vector< Aws::String > &value)
Definition: TestInvokeAuthorizerResult.h:106
Aws::IoT::Model::TestInvokeAuthorizerResult::AddPolicyDocuments
TestInvokeAuthorizerResult & AddPolicyDocuments(Aws::String &&value)
Definition: TestInvokeAuthorizerResult.h:121
Aws::IoT::Model::TestInvokeAuthorizerResult::WithRefreshAfterInSeconds
TestInvokeAuthorizerResult & WithRefreshAfterInSeconds(int value)
Definition: TestInvokeAuthorizerResult.h:145
Aws::IoT::Model::TestInvokeAuthorizerResult::GetDisconnectAfterInSeconds
int GetDisconnectAfterInSeconds() const
Definition: TestInvokeAuthorizerResult.h:151
Aws::IoT::Model::TestInvokeAuthorizerResult::AddPolicyDocuments
TestInvokeAuthorizerResult & AddPolicyDocuments(const Aws::String &value)
Definition: TestInvokeAuthorizerResult.h:116
Aws::IoT::Model::TestInvokeAuthorizerResult::SetPolicyDocuments
void SetPolicyDocuments(const Aws::Vector< Aws::String > &value)
Definition: TestInvokeAuthorizerResult.h:96
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::TestInvokeAuthorizerResult::GetPrincipalId
const Aws::String & GetPrincipalId() const
Definition: TestInvokeAuthorizerResult.h:55
AWSVector.h
Aws::IoT::Model::TestInvokeAuthorizerResult::WithPrincipalId
TestInvokeAuthorizerResult & WithPrincipalId(const char *value)
Definition: TestInvokeAuthorizerResult.h:85
Aws::IoT::Model::TestInvokeAuthorizerResult::AddPolicyDocuments
TestInvokeAuthorizerResult & AddPolicyDocuments(const char *value)
Definition: TestInvokeAuthorizerResult.h:126
Aws::IoT::Model::TestInvokeAuthorizerResult::WithIsAuthenticated
TestInvokeAuthorizerResult & WithIsAuthenticated(bool value)
Definition: TestInvokeAuthorizerResult.h:49
Aws::IoT::Model::TestInvokeAuthorizerResult::SetPrincipalId
void SetPrincipalId(const char *value)
Definition: TestInvokeAuthorizerResult.h:70
Aws::IoT::Model::TestInvokeAuthorizerResult::SetPrincipalId
void SetPrincipalId(const Aws::String &value)
Definition: TestInvokeAuthorizerResult.h:60
Aws::IoT::Model::TestInvokeAuthorizerResult::SetPolicyDocuments
void SetPolicyDocuments(Aws::Vector< Aws::String > &&value)
Definition: TestInvokeAuthorizerResult.h:101
Aws::IoT::Model::TestInvokeAuthorizerResult::WithPrincipalId
TestInvokeAuthorizerResult & WithPrincipalId(const Aws::String &value)
Definition: TestInvokeAuthorizerResult.h:75
AWSString.h
Aws::IoT::Model::TestInvokeAuthorizerResult::TestInvokeAuthorizerResult
TestInvokeAuthorizerResult()
Aws::IoT::Model::TestInvokeAuthorizerResult::GetPolicyDocuments
const Aws::Vector< Aws::String > & GetPolicyDocuments() const
Definition: TestInvokeAuthorizerResult.h:91
Aws::IoT::Model::TestInvokeAuthorizerResult::SetRefreshAfterInSeconds
void SetRefreshAfterInSeconds(int value)
Definition: TestInvokeAuthorizerResult.h:139
Aws::IoT::Model::TestInvokeAuthorizerResult
Definition: TestInvokeAuthorizerResult.h:29
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::TestInvokeAuthorizerResult::GetRefreshAfterInSeconds
int GetRefreshAfterInSeconds() const
Definition: TestInvokeAuthorizerResult.h:133
Aws::IoT::Model::TestInvokeAuthorizerResult::SetIsAuthenticated
void SetIsAuthenticated(bool value)
Definition: TestInvokeAuthorizerResult.h:44
Aws::IoT::Model::TestInvokeAuthorizerResult::WithPolicyDocuments
TestInvokeAuthorizerResult & WithPolicyDocuments(Aws::Vector< Aws::String > &&value)
Definition: TestInvokeAuthorizerResult.h:111
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::TestInvokeAuthorizerResult::SetPrincipalId
void SetPrincipalId(Aws::String &&value)
Definition: TestInvokeAuthorizerResult.h:65
IoT_EXPORTS.h
Aws::IoT::Model::TestInvokeAuthorizerResult::GetIsAuthenticated
bool GetIsAuthenticated() const
Definition: TestInvokeAuthorizerResult.h:39