AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ErrorResult.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_CONNECT_API ErrorResult();
37 AWS_CONNECT_API ErrorResult(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
47 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
48 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
49 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
50 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
51 inline ErrorResult& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
52 inline ErrorResult& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
53 inline ErrorResult& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
55
57
60 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
61 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
62 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
63 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
64 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
65 inline ErrorResult& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
66 inline ErrorResult& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
67 inline ErrorResult& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
69 private:
70
71 Aws::String m_errorCode;
72 bool m_errorCodeHasBeenSet = false;
73
74 Aws::String m_errorMessage;
75 bool m_errorMessageHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Connect
80} // namespace Aws
void SetErrorMessage(const char *value)
Definition ErrorResult.h:64
ErrorResult & WithErrorMessage(Aws::String &&value)
Definition ErrorResult.h:66
void SetErrorCode(const Aws::String &value)
Definition ErrorResult.h:48
ErrorResult & WithErrorMessage(const char *value)
Definition ErrorResult.h:67
ErrorResult & WithErrorCode(Aws::String &&value)
Definition ErrorResult.h:52
void SetErrorCode(const char *value)
Definition ErrorResult.h:50
ErrorResult & WithErrorCode(const Aws::String &value)
Definition ErrorResult.h:51
const Aws::String & GetErrorCode() const
Definition ErrorResult.h:46
const Aws::String & GetErrorMessage() const
Definition ErrorResult.h:60
void SetErrorMessage(const Aws::String &value)
Definition ErrorResult.h:62
AWS_CONNECT_API ErrorResult & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetErrorCode(Aws::String &&value)
Definition ErrorResult.h:49
ErrorResult & WithErrorCode(const char *value)
Definition ErrorResult.h:53
ErrorResult & WithErrorMessage(const Aws::String &value)
Definition ErrorResult.h:65
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API ErrorResult(Aws::Utils::Json::JsonView jsonValue)
void SetErrorMessage(Aws::String &&value)
Definition ErrorResult.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue