AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CodeError.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/CodeErrorLocation.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppSync {
21namespace Model {
22
28class CodeError {
29 public:
30 AWS_APPSYNC_API CodeError() = default;
31 AWS_APPSYNC_API CodeError(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPSYNC_API CodeError& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetErrorType() const { return m_errorType; }
41 inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; }
42 template <typename ErrorTypeT = Aws::String>
43 void SetErrorType(ErrorTypeT&& value) {
44 m_errorTypeHasBeenSet = true;
45 m_errorType = std::forward<ErrorTypeT>(value);
46 }
47 template <typename ErrorTypeT = Aws::String>
48 CodeError& WithErrorType(ErrorTypeT&& value) {
49 SetErrorType(std::forward<ErrorTypeT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetValue() const { return m_value; }
60 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
61 template <typename ValueT = Aws::String>
62 void SetValue(ValueT&& value) {
63 m_valueHasBeenSet = true;
64 m_value = std::forward<ValueT>(value);
65 }
66 template <typename ValueT = Aws::String>
67 CodeError& WithValue(ValueT&& value) {
68 SetValue(std::forward<ValueT>(value));
69 return *this;
70 }
72
74
77 inline const CodeErrorLocation& GetLocation() const { return m_location; }
78 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
79 template <typename LocationT = CodeErrorLocation>
80 void SetLocation(LocationT&& value) {
81 m_locationHasBeenSet = true;
82 m_location = std::forward<LocationT>(value);
83 }
84 template <typename LocationT = CodeErrorLocation>
85 CodeError& WithLocation(LocationT&& value) {
86 SetLocation(std::forward<LocationT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_errorType;
92
93 Aws::String m_value;
94
95 CodeErrorLocation m_location;
96 bool m_errorTypeHasBeenSet = false;
97 bool m_valueHasBeenSet = false;
98 bool m_locationHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace AppSync
103} // namespace Aws
void SetErrorType(ErrorTypeT &&value)
Definition CodeError.h:43
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLocation(LocationT &&value)
Definition CodeError.h:80
AWS_APPSYNC_API CodeError()=default
CodeError & WithValue(ValueT &&value)
Definition CodeError.h:67
const CodeErrorLocation & GetLocation() const
Definition CodeError.h:77
AWS_APPSYNC_API CodeError(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API CodeError & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeError & WithLocation(LocationT &&value)
Definition CodeError.h:85
const Aws::String & GetErrorType() const
Definition CodeError.h:40
void SetValue(ValueT &&value)
Definition CodeError.h:62
const Aws::String & GetValue() const
Definition CodeError.h:59
CodeError & WithErrorType(ErrorTypeT &&value)
Definition CodeError.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue