AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ErrorInfo.h
1
6#pragma once
7#include <aws/finspace/Finspace_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/finspace/model/ErrorDetails.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 finspace
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_FINSPACE_API ErrorInfo();
37 AWS_FINSPACE_API ErrorInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_FINSPACE_API ErrorInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
47 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
48 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
49 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
50 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
51 inline ErrorInfo& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
52 inline ErrorInfo& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
53 inline ErrorInfo& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
55
57
60 inline const ErrorDetails& GetErrorType() const{ return m_errorType; }
61 inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; }
62 inline void SetErrorType(const ErrorDetails& value) { m_errorTypeHasBeenSet = true; m_errorType = value; }
63 inline void SetErrorType(ErrorDetails&& value) { m_errorTypeHasBeenSet = true; m_errorType = std::move(value); }
64 inline ErrorInfo& WithErrorType(const ErrorDetails& value) { SetErrorType(value); return *this;}
65 inline ErrorInfo& WithErrorType(ErrorDetails&& value) { SetErrorType(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_errorMessage;
70 bool m_errorMessageHasBeenSet = false;
71
72 ErrorDetails m_errorType;
73 bool m_errorTypeHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace finspace
78} // namespace Aws
ErrorInfo & WithErrorMessage(const Aws::String &value)
Definition ErrorInfo.h:51
ErrorInfo & WithErrorType(const ErrorDetails &value)
Definition ErrorInfo.h:64
void SetErrorMessage(Aws::String &&value)
Definition ErrorInfo.h:49
const ErrorDetails & GetErrorType() const
Definition ErrorInfo.h:60
const Aws::String & GetErrorMessage() const
Definition ErrorInfo.h:46
void SetErrorType(const ErrorDetails &value)
Definition ErrorInfo.h:62
ErrorInfo & WithErrorMessage(const char *value)
Definition ErrorInfo.h:53
AWS_FINSPACE_API ErrorInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
ErrorInfo & WithErrorType(ErrorDetails &&value)
Definition ErrorInfo.h:65
ErrorInfo & WithErrorMessage(Aws::String &&value)
Definition ErrorInfo.h:52
AWS_FINSPACE_API ErrorInfo()
void SetErrorMessage(const char *value)
Definition ErrorInfo.h:50
void SetErrorMessage(const Aws::String &value)
Definition ErrorInfo.h:48
AWS_FINSPACE_API ErrorInfo(Aws::Utils::Json::JsonView jsonValue)
bool ErrorMessageHasBeenSet() const
Definition ErrorInfo.h:47
AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrorType(ErrorDetails &&value)
Definition ErrorInfo.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue