AWS SDK for C++

AWS SDK for C++ Version 1.11.881

Loading...
Searching...
No Matches
FunctionCodeLocationError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda/Lambda_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lambda {
20namespace Model {
21
29 public:
30 AWS_LAMBDA_API FunctionCodeLocationError() = default;
33 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
41 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
42 template <typename ErrorCodeT = Aws::String>
43 void SetErrorCode(ErrorCodeT&& value) {
44 m_errorCodeHasBeenSet = true;
45 m_errorCode = std::forward<ErrorCodeT>(value);
46 }
47 template <typename ErrorCodeT = Aws::String>
49 SetErrorCode(std::forward<ErrorCodeT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetMessage() const { return m_message; }
60 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
61 template <typename MessageT = Aws::String>
62 void SetMessage(MessageT&& value) {
63 m_messageHasBeenSet = true;
64 m_message = std::forward<MessageT>(value);
65 }
66 template <typename MessageT = Aws::String>
68 SetMessage(std::forward<MessageT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_errorCode;
74
75 Aws::String m_message;
76 bool m_errorCodeHasBeenSet = false;
77 bool m_messageHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace Lambda
82} // namespace Aws
FunctionCodeLocationError & WithErrorCode(ErrorCodeT &&value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAMBDA_API FunctionCodeLocationError()=default
AWS_LAMBDA_API FunctionCodeLocationError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API FunctionCodeLocationError(Aws::Utils::Json::JsonView jsonValue)
FunctionCodeLocationError & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue