AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FunctionEventInvokeConfig.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lambda/model/DestinationConfig.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Lambda
24{
25namespace Model
26{
27
29 {
30 public:
31 AWS_LAMBDA_API FunctionEventInvokeConfig();
34 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
36
38
41 inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
42 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
43 inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
44 inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
46 inline FunctionEventInvokeConfig& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
48
50
53 inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
54 inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
55 inline void SetFunctionArn(const Aws::String& value) { m_functionArnHasBeenSet = true; m_functionArn = value; }
56 inline void SetFunctionArn(Aws::String&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::move(value); }
57 inline void SetFunctionArn(const char* value) { m_functionArnHasBeenSet = true; m_functionArn.assign(value); }
58 inline FunctionEventInvokeConfig& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
59 inline FunctionEventInvokeConfig& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
60 inline FunctionEventInvokeConfig& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
62
64
67 inline int GetMaximumRetryAttempts() const{ return m_maximumRetryAttempts; }
68 inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
69 inline void SetMaximumRetryAttempts(int value) { m_maximumRetryAttemptsHasBeenSet = true; m_maximumRetryAttempts = value; }
72
74
78 inline int GetMaximumEventAgeInSeconds() const{ return m_maximumEventAgeInSeconds; }
79 inline bool MaximumEventAgeInSecondsHasBeenSet() const { return m_maximumEventAgeInSecondsHasBeenSet; }
80 inline void SetMaximumEventAgeInSeconds(int value) { m_maximumEventAgeInSecondsHasBeenSet = true; m_maximumEventAgeInSeconds = value; }
83
85
93 inline const DestinationConfig& GetDestinationConfig() const{ return m_destinationConfig; }
94 inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
95 inline void SetDestinationConfig(const DestinationConfig& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = value; }
96 inline void SetDestinationConfig(DestinationConfig&& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = std::move(value); }
100
102
103 inline const Aws::String& GetRequestId() const{ return m_requestId; }
104 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
105 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
106 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
107 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
108 inline FunctionEventInvokeConfig& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
109 inline FunctionEventInvokeConfig& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
110 inline FunctionEventInvokeConfig& WithRequestId(const char* value) { SetRequestId(value); return *this;}
112 private:
113
114 Aws::Utils::DateTime m_lastModified;
115 bool m_lastModifiedHasBeenSet = false;
116
117 Aws::String m_functionArn;
118 bool m_functionArnHasBeenSet = false;
119
120 int m_maximumRetryAttempts;
121 bool m_maximumRetryAttemptsHasBeenSet = false;
122
123 int m_maximumEventAgeInSeconds;
124 bool m_maximumEventAgeInSecondsHasBeenSet = false;
125
126 DestinationConfig m_destinationConfig;
127 bool m_destinationConfigHasBeenSet = false;
128
129 Aws::String m_requestId;
130 bool m_requestIdHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Lambda
135} // namespace Aws
const DestinationConfig & GetDestinationConfig() const
FunctionEventInvokeConfig & WithDestinationConfig(DestinationConfig &&value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionEventInvokeConfig & WithRequestId(const char *value)
AWS_LAMBDA_API FunctionEventInvokeConfig(Aws::Utils::Json::JsonView jsonValue)
FunctionEventInvokeConfig & WithRequestId(Aws::String &&value)
void SetDestinationConfig(const DestinationConfig &value)
void SetLastModified(const Aws::Utils::DateTime &value)
FunctionEventInvokeConfig & WithMaximumEventAgeInSeconds(int value)
FunctionEventInvokeConfig & WithFunctionArn(Aws::String &&value)
FunctionEventInvokeConfig & WithMaximumRetryAttempts(int value)
FunctionEventInvokeConfig & WithDestinationConfig(const DestinationConfig &value)
FunctionEventInvokeConfig & WithFunctionArn(const Aws::String &value)
FunctionEventInvokeConfig & WithLastModified(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetLastModified() const
FunctionEventInvokeConfig & WithRequestId(const Aws::String &value)
FunctionEventInvokeConfig & WithFunctionArn(const char *value)
AWS_LAMBDA_API FunctionEventInvokeConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
FunctionEventInvokeConfig & WithLastModified(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue