AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ErrorReason.h
1
6#pragma once
7#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
8#include <aws/service-quotas/model/ErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.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 ServiceQuotas
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SERVICEQUOTAS_API ErrorReason();
37 AWS_SERVICEQUOTAS_API ErrorReason(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SERVICEQUOTAS_API ErrorReason& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
54 inline const ErrorCode& GetErrorCode() const{ return m_errorCode; }
55 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
56 inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
57 inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
58 inline ErrorReason& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;}
59 inline ErrorReason& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
61
63
66 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
67 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
68 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
69 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
70 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
71 inline ErrorReason& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
72 inline ErrorReason& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
73 inline ErrorReason& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
75 private:
76
77 ErrorCode m_errorCode;
78 bool m_errorCodeHasBeenSet = false;
79
80 Aws::String m_errorMessage;
81 bool m_errorMessageHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace ServiceQuotas
86} // namespace Aws
ErrorReason & WithErrorMessage(Aws::String &&value)
Definition ErrorReason.h:72
AWS_SERVICEQUOTAS_API ErrorReason & operator=(Aws::Utils::Json::JsonView jsonValue)
ErrorReason & WithErrorCode(const ErrorCode &value)
Definition ErrorReason.h:58
ErrorReason & WithErrorMessage(const char *value)
Definition ErrorReason.h:73
AWS_SERVICEQUOTAS_API ErrorReason()
ErrorReason & WithErrorMessage(const Aws::String &value)
Definition ErrorReason.h:71
void SetErrorCode(const ErrorCode &value)
Definition ErrorReason.h:56
void SetErrorCode(ErrorCode &&value)
Definition ErrorReason.h:57
const ErrorCode & GetErrorCode() const
Definition ErrorReason.h:54
void SetErrorMessage(const char *value)
Definition ErrorReason.h:70
ErrorReason & WithErrorCode(ErrorCode &&value)
Definition ErrorReason.h:59
const Aws::String & GetErrorMessage() const
Definition ErrorReason.h:66
void SetErrorMessage(const Aws::String &value)
Definition ErrorReason.h:68
void SetErrorMessage(Aws::String &&value)
Definition ErrorReason.h:69
AWS_SERVICEQUOTAS_API ErrorReason(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue