AWS SDK for C++

AWS SDK for C++ Version 1.11.912

Loading...
Searching...
No Matches
RevisionError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda-web/LambdaWeb_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LambdaWeb {
20namespace Model {
21
31 public:
32 AWS_LAMBDAWEB_API RevisionError() = default;
33 AWS_LAMBDAWEB_API RevisionError(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LAMBDAWEB_API RevisionError& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LAMBDAWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetAttribute() const { return m_attribute; }
42 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
43 template <typename AttributeT = Aws::String>
44 void SetAttribute(AttributeT&& value) {
45 m_attributeHasBeenSet = true;
46 m_attribute = std::forward<AttributeT>(value);
47 }
48 template <typename AttributeT = Aws::String>
49 RevisionError& WithAttribute(AttributeT&& value) {
50 SetAttribute(std::forward<AttributeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
60 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
61 template <typename ErrorCodeT = Aws::String>
62 void SetErrorCode(ErrorCodeT&& value) {
63 m_errorCodeHasBeenSet = true;
64 m_errorCode = std::forward<ErrorCodeT>(value);
65 }
66 template <typename ErrorCodeT = Aws::String>
67 RevisionError& WithErrorCode(ErrorCodeT&& value) {
68 SetErrorCode(std::forward<ErrorCodeT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
78 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
79 template <typename ErrorMessageT = Aws::String>
80 void SetErrorMessage(ErrorMessageT&& value) {
81 m_errorMessageHasBeenSet = true;
82 m_errorMessage = std::forward<ErrorMessageT>(value);
83 }
84 template <typename ErrorMessageT = Aws::String>
85 RevisionError& WithErrorMessage(ErrorMessageT&& value) {
86 SetErrorMessage(std::forward<ErrorMessageT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_attribute;
92
93 Aws::String m_errorCode;
94
95 Aws::String m_errorMessage;
96 bool m_attributeHasBeenSet = false;
97 bool m_errorCodeHasBeenSet = false;
98 bool m_errorMessageHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace LambdaWeb
103} // namespace Aws
void SetErrorMessage(ErrorMessageT &&value)
const Aws::String & GetErrorMessage() const
RevisionError & WithAttribute(AttributeT &&value)
void SetAttribute(AttributeT &&value)
void SetErrorCode(ErrorCodeT &&value)
RevisionError & WithErrorCode(ErrorCodeT &&value)
AWS_LAMBDAWEB_API Aws::Utils::Json::JsonValue Jsonize() const
RevisionError & WithErrorMessage(ErrorMessageT &&value)
AWS_LAMBDAWEB_API RevisionError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDAWEB_API RevisionError(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetErrorCode() const
const Aws::String & GetAttribute() const
AWS_LAMBDAWEB_API RevisionError()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue