AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RuntimeVersionConfig.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda/model/RuntimeVersionError.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lambda
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LAMBDA_API RuntimeVersionConfig() = default;
39 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetRuntimeVersionArn() const { return m_runtimeVersionArn; }
47 inline bool RuntimeVersionArnHasBeenSet() const { return m_runtimeVersionArnHasBeenSet; }
48 template<typename RuntimeVersionArnT = Aws::String>
49 void SetRuntimeVersionArn(RuntimeVersionArnT&& value) { m_runtimeVersionArnHasBeenSet = true; m_runtimeVersionArn = std::forward<RuntimeVersionArnT>(value); }
50 template<typename RuntimeVersionArnT = Aws::String>
51 RuntimeVersionConfig& WithRuntimeVersionArn(RuntimeVersionArnT&& value) { SetRuntimeVersionArn(std::forward<RuntimeVersionArnT>(value)); return *this;}
53
55
59 inline const RuntimeVersionError& GetError() const { return m_error; }
60 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
61 template<typename ErrorT = RuntimeVersionError>
62 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
63 template<typename ErrorT = RuntimeVersionError>
64 RuntimeVersionConfig& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
66 private:
67
68 Aws::String m_runtimeVersionArn;
69 bool m_runtimeVersionArnHasBeenSet = false;
70
71 RuntimeVersionError m_error;
72 bool m_errorHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Lambda
77} // namespace Aws
AWS_LAMBDA_API RuntimeVersionConfig(Aws::Utils::Json::JsonView jsonValue)
const RuntimeVersionError & GetError() const
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRuntimeVersionArn(RuntimeVersionArnT &&value)
AWS_LAMBDA_API RuntimeVersionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API RuntimeVersionConfig()=default
RuntimeVersionConfig & WithError(ErrorT &&value)
RuntimeVersionConfig & WithRuntimeVersionArn(RuntimeVersionArnT &&value)
const Aws::String & GetRuntimeVersionArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue