AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RuntimeVersionConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda/Lambda_EXPORTS.h>
9#include <aws/lambda/model/RuntimeVersionError.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lambda {
21namespace Model {
22
30 public:
31 AWS_LAMBDA_API RuntimeVersionConfig() = default;
34 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetRuntimeVersionArn() const { return m_runtimeVersionArn; }
41 inline bool RuntimeVersionArnHasBeenSet() const { return m_runtimeVersionArnHasBeenSet; }
42 template <typename RuntimeVersionArnT = Aws::String>
43 void SetRuntimeVersionArn(RuntimeVersionArnT&& value) {
44 m_runtimeVersionArnHasBeenSet = true;
45 m_runtimeVersionArn = std::forward<RuntimeVersionArnT>(value);
46 }
47 template <typename RuntimeVersionArnT = Aws::String>
48 RuntimeVersionConfig& WithRuntimeVersionArn(RuntimeVersionArnT&& value) {
49 SetRuntimeVersionArn(std::forward<RuntimeVersionArnT>(value));
50 return *this;
51 }
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) {
63 m_errorHasBeenSet = true;
64 m_error = std::forward<ErrorT>(value);
65 }
66 template <typename ErrorT = RuntimeVersionError>
68 SetError(std::forward<ErrorT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_runtimeVersionArn;
74
75 RuntimeVersionError m_error;
76 bool m_runtimeVersionArnHasBeenSet = false;
77 bool m_errorHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace Lambda
82} // 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