AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LambdaAuthorizerConfig.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppSync
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_APPSYNC_API LambdaAuthorizerConfig() = default;
40 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline int GetAuthorizerResultTtlInSeconds() const { return m_authorizerResultTtlInSeconds; }
52 inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
53 inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
56
58
70 inline const Aws::String& GetAuthorizerUri() const { return m_authorizerUri; }
71 inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
72 template<typename AuthorizerUriT = Aws::String>
73 void SetAuthorizerUri(AuthorizerUriT&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = std::forward<AuthorizerUriT>(value); }
74 template<typename AuthorizerUriT = Aws::String>
75 LambdaAuthorizerConfig& WithAuthorizerUri(AuthorizerUriT&& value) { SetAuthorizerUri(std::forward<AuthorizerUriT>(value)); return *this;}
77
79
83 inline const Aws::String& GetIdentityValidationExpression() const { return m_identityValidationExpression; }
84 inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
85 template<typename IdentityValidationExpressionT = Aws::String>
86 void SetIdentityValidationExpression(IdentityValidationExpressionT&& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = std::forward<IdentityValidationExpressionT>(value); }
87 template<typename IdentityValidationExpressionT = Aws::String>
88 LambdaAuthorizerConfig& WithIdentityValidationExpression(IdentityValidationExpressionT&& value) { SetIdentityValidationExpression(std::forward<IdentityValidationExpressionT>(value)); return *this;}
90 private:
91
92 int m_authorizerResultTtlInSeconds{0};
93 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
94
95 Aws::String m_authorizerUri;
96 bool m_authorizerUriHasBeenSet = false;
97
98 Aws::String m_identityValidationExpression;
99 bool m_identityValidationExpressionHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace AppSync
104} // namespace Aws
AWS_APPSYNC_API LambdaAuthorizerConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaAuthorizerConfig & WithAuthorizerResultTtlInSeconds(int value)
AWS_APPSYNC_API LambdaAuthorizerConfig()=default
LambdaAuthorizerConfig & WithIdentityValidationExpression(IdentityValidationExpressionT &&value)
LambdaAuthorizerConfig & WithAuthorizerUri(AuthorizerUriT &&value)
void SetIdentityValidationExpression(IdentityValidationExpressionT &&value)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetIdentityValidationExpression() const
AWS_APPSYNC_API LambdaAuthorizerConfig(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue