AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetErrorType(const Aws::String& value) { m_errorTypeHasBeenSet = true; m_errorType = value; }
49 inline void SetErrorType(Aws::String&& value) { m_errorTypeHasBeenSet = true; m_errorType = std::move(value); }
50 inline void SetErrorType(const char* value) { m_errorTypeHasBeenSet = true; m_errorType.assign(value); }
51 inline CodeError& WithErrorType(const Aws::String& value) { SetErrorType(value); return *this;}
52 inline CodeError& WithErrorType(Aws::String&& value) { SetErrorType(std::move(value)); return *this;}
53 inline CodeError& WithErrorType(const char* value) { SetErrorType(value); return *this;}
55
57
61 inline const Aws::String& GetValue() const{ return m_value; }
62 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
63 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
64 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
65 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
66 inline CodeError& WithValue(const Aws::String& value) { SetValue(value); return *this;}
67 inline CodeError& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
68 inline CodeError& WithValue(const char* value) { SetValue(value); return *this;}
70
72
75 inline const CodeErrorLocation& GetLocation() const{ return m_location; }
76 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
77 inline void SetLocation(const CodeErrorLocation& value) { m_locationHasBeenSet = true; m_location = value; }
78 inline void SetLocation(CodeErrorLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
79 inline CodeError& WithLocation(const CodeErrorLocation& value) { SetLocation(value); return *this;}
80 inline CodeError& WithLocation(CodeErrorLocation&& value) { SetLocation(std::move(value)); return *this;}
82 private:
83
84 Aws::String m_errorType;
85 bool m_errorTypeHasBeenSet = false;
86
87 Aws::String m_value;
88 bool m_valueHasBeenSet = false;
89
90 CodeErrorLocation m_location;
91 bool m_locationHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace AppSync
96} // namespace Aws
void SetErrorType(const char *value)
Definition CodeError.h:50
void SetLocation(CodeErrorLocation &&value)
Definition CodeError.h:78
void SetValue(const char *value)
Definition CodeError.h:65
CodeError & WithValue(const char *value)
Definition CodeError.h:68
void SetValue(Aws::String &&value)
Definition CodeError.h:64
CodeError & WithValue(const Aws::String &value)
Definition CodeError.h:66
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
CodeError & WithValue(Aws::String &&value)
Definition CodeError.h:67
void SetLocation(const CodeErrorLocation &value)
Definition CodeError.h:77
const CodeErrorLocation & GetLocation() const
Definition CodeError.h:75
CodeError & WithLocation(CodeErrorLocation &&value)
Definition CodeError.h:80
CodeError & WithErrorType(const char *value)
Definition CodeError.h:53
AWS_APPSYNC_API CodeError(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API CodeError & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetValue(const Aws::String &value)
Definition CodeError.h:63
const Aws::String & GetErrorType() const
Definition CodeError.h:46
CodeError & WithLocation(const CodeErrorLocation &value)
Definition CodeError.h:79
const Aws::String & GetValue() const
Definition CodeError.h:61
CodeError & WithErrorType(Aws::String &&value)
Definition CodeError.h:52
CodeError & WithErrorType(const Aws::String &value)
Definition CodeError.h:51
void SetErrorType(const Aws::String &value)
Definition CodeError.h:48
void SetErrorType(Aws::String &&value)
Definition CodeError.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue