AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FieldError.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_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 ConnectCases
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_CONNECTCASES_API FieldError();
35 AWS_CONNECTCASES_API FieldError(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECTCASES_API FieldError& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
45 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
46 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
47 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
48 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
49 inline FieldError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
50 inline FieldError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
51 inline FieldError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
53
55
58 inline const Aws::String& GetId() const{ return m_id; }
59 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
60 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
61 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
62 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
63 inline FieldError& WithId(const Aws::String& value) { SetId(value); return *this;}
64 inline FieldError& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
65 inline FieldError& WithId(const char* value) { SetId(value); return *this;}
67
69
72 inline const Aws::String& GetMessage() const{ return m_message; }
73 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
74 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
75 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
76 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
77 inline FieldError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
78 inline FieldError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
79 inline FieldError& WithMessage(const char* value) { SetMessage(value); return *this;}
81 private:
82
83 Aws::String m_errorCode;
84 bool m_errorCodeHasBeenSet = false;
85
86 Aws::String m_id;
87 bool m_idHasBeenSet = false;
88
89 Aws::String m_message;
90 bool m_messageHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace ConnectCases
95} // namespace Aws
AWS_CONNECTCASES_API FieldError()
FieldError & WithMessage(Aws::String &&value)
Definition FieldError.h:78
void SetErrorCode(Aws::String &&value)
Definition FieldError.h:47
FieldError & WithMessage(const char *value)
Definition FieldError.h:79
FieldError & WithErrorCode(const char *value)
Definition FieldError.h:51
void SetId(const char *value)
Definition FieldError.h:62
void SetMessage(const Aws::String &value)
Definition FieldError.h:74
AWS_CONNECTCASES_API FieldError(Aws::Utils::Json::JsonView jsonValue)
FieldError & WithErrorCode(Aws::String &&value)
Definition FieldError.h:50
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetErrorCode() const
Definition FieldError.h:44
void SetMessage(const char *value)
Definition FieldError.h:76
const Aws::String & GetMessage() const
Definition FieldError.h:72
void SetMessage(Aws::String &&value)
Definition FieldError.h:75
void SetId(const Aws::String &value)
Definition FieldError.h:60
AWS_CONNECTCASES_API FieldError & operator=(Aws::Utils::Json::JsonView jsonValue)
FieldError & WithErrorCode(const Aws::String &value)
Definition FieldError.h:49
FieldError & WithId(Aws::String &&value)
Definition FieldError.h:64
FieldError & WithId(const char *value)
Definition FieldError.h:65
void SetId(Aws::String &&value)
Definition FieldError.h:61
const Aws::String & GetId() const
Definition FieldError.h:58
void SetErrorCode(const Aws::String &value)
Definition FieldError.h:46
void SetErrorCode(const char *value)
Definition FieldError.h:48
FieldError & WithMessage(const Aws::String &value)
Definition FieldError.h:77
FieldError & WithId(const Aws::String &value)
Definition FieldError.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue