AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AppSync {
20namespace Model {
21
31 public:
32 AWS_APPSYNC_API LambdaAuthorizerConfig() = default;
35 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
45 inline int GetAuthorizerResultTtlInSeconds() const { return m_authorizerResultTtlInSeconds; }
46 inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
47 inline void SetAuthorizerResultTtlInSeconds(int value) {
48 m_authorizerResultTtlInSecondsHasBeenSet = true;
49 m_authorizerResultTtlInSeconds = value;
50 }
53 return *this;
54 }
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) {
74 m_authorizerUriHasBeenSet = true;
75 m_authorizerUri = std::forward<AuthorizerUriT>(value);
76 }
77 template <typename AuthorizerUriT = Aws::String>
78 LambdaAuthorizerConfig& WithAuthorizerUri(AuthorizerUriT&& value) {
79 SetAuthorizerUri(std::forward<AuthorizerUriT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetIdentityValidationExpression() const { return m_identityValidationExpression; }
90 inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
91 template <typename IdentityValidationExpressionT = Aws::String>
92 void SetIdentityValidationExpression(IdentityValidationExpressionT&& value) {
93 m_identityValidationExpressionHasBeenSet = true;
94 m_identityValidationExpression = std::forward<IdentityValidationExpressionT>(value);
95 }
96 template <typename IdentityValidationExpressionT = Aws::String>
97 LambdaAuthorizerConfig& WithIdentityValidationExpression(IdentityValidationExpressionT&& value) {
98 SetIdentityValidationExpression(std::forward<IdentityValidationExpressionT>(value));
99 return *this;
100 }
102 private:
103 int m_authorizerResultTtlInSeconds{0};
104
105 Aws::String m_authorizerUri;
106
107 Aws::String m_identityValidationExpression;
108 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
109 bool m_authorizerUriHasBeenSet = false;
110 bool m_identityValidationExpressionHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace AppSync
115} // 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