AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CodeError.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appsync/model/CodeErrorLocation.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 AppSync
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_APPSYNC_API CodeError() = default;
36 AWS_APPSYNC_API CodeError(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPSYNC_API CodeError& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetErrorType() const { return m_errorType; }
47 inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; }
48 template<typename ErrorTypeT = Aws::String>
49 void SetErrorType(ErrorTypeT&& value) { m_errorTypeHasBeenSet = true; m_errorType = std::forward<ErrorTypeT>(value); }
50 template<typename ErrorTypeT = Aws::String>
51 CodeError& WithErrorType(ErrorTypeT&& value) { SetErrorType(std::forward<ErrorTypeT>(value)); return *this;}
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) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
63 template<typename ValueT = Aws::String>
64 CodeError& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
66
68
71 inline const CodeErrorLocation& GetLocation() const { return m_location; }
72 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
73 template<typename LocationT = CodeErrorLocation>
74 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
75 template<typename LocationT = CodeErrorLocation>
76 CodeError& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
78 private:
79
80 Aws::String m_errorType;
81 bool m_errorTypeHasBeenSet = false;
82
83 Aws::String m_value;
84 bool m_valueHasBeenSet = false;
85
86 CodeErrorLocation m_location;
87 bool m_locationHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace AppSync
92} // namespace Aws
void SetErrorType(ErrorTypeT &&value)
Definition CodeError.h:49
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLocation(LocationT &&value)
Definition CodeError.h:74
AWS_APPSYNC_API CodeError()=default
CodeError & WithValue(ValueT &&value)
Definition CodeError.h:64
const CodeErrorLocation & GetLocation() const
Definition CodeError.h:71
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:76
const Aws::String & GetErrorType() const
Definition CodeError.h:46
void SetValue(ValueT &&value)
Definition CodeError.h:62
const Aws::String & GetValue() const
Definition CodeError.h:59
CodeError & WithErrorType(ErrorTypeT &&value)
Definition CodeError.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue