AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
QueryError.h
1
6#pragma once
7#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
8#include <aws/resource-groups/model/QueryErrorCode.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 ResourceGroups
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_RESOURCEGROUPS_API QueryError();
37 AWS_RESOURCEGROUPS_API QueryError(Aws::Utils::Json::JsonView jsonValue);
38 AWS_RESOURCEGROUPS_API QueryError& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const QueryErrorCode& GetErrorCode() const{ return m_errorCode; }
47 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
48 inline void SetErrorCode(const QueryErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
49 inline void SetErrorCode(QueryErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
50 inline QueryError& WithErrorCode(const QueryErrorCode& value) { SetErrorCode(value); return *this;}
51 inline QueryError& WithErrorCode(QueryErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetMessage() const{ return m_message; }
59 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
60 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
61 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
62 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
63 inline QueryError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
64 inline QueryError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
65 inline QueryError& WithMessage(const char* value) { SetMessage(value); return *this;}
67 private:
68
69 QueryErrorCode m_errorCode;
70 bool m_errorCodeHasBeenSet = false;
71
72 Aws::String m_message;
73 bool m_messageHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace ResourceGroups
78} // namespace Aws
QueryError & WithMessage(const char *value)
Definition QueryError.h:65
QueryError & WithMessage(const Aws::String &value)
Definition QueryError.h:63
AWS_RESOURCEGROUPS_API QueryError()
AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RESOURCEGROUPS_API QueryError & operator=(Aws::Utils::Json::JsonView jsonValue)
QueryError & WithMessage(Aws::String &&value)
Definition QueryError.h:64
void SetErrorCode(const QueryErrorCode &value)
Definition QueryError.h:48
const Aws::String & GetMessage() const
Definition QueryError.h:58
AWS_RESOURCEGROUPS_API QueryError(Aws::Utils::Json::JsonView jsonValue)
void SetErrorCode(QueryErrorCode &&value)
Definition QueryError.h:49
const QueryErrorCode & GetErrorCode() const
Definition QueryError.h:46
void SetMessage(Aws::String &&value)
Definition QueryError.h:61
QueryError & WithErrorCode(QueryErrorCode &&value)
Definition QueryError.h:51
void SetMessage(const Aws::String &value)
Definition QueryError.h:60
QueryError & WithErrorCode(const QueryErrorCode &value)
Definition QueryError.h:50
void SetMessage(const char *value)
Definition QueryError.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue