AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchError.h
1
6#pragma once
7#include <aws/repostspace/Repostspace_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 repostspace
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_REPOSTSPACE_API BatchError();
36 AWS_REPOSTSPACE_API BatchError(Aws::Utils::Json::JsonView jsonValue);
37 AWS_REPOSTSPACE_API BatchError& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_REPOSTSPACE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAccessorId() const{ return m_accessorId; }
46 inline bool AccessorIdHasBeenSet() const { return m_accessorIdHasBeenSet; }
47 inline void SetAccessorId(const Aws::String& value) { m_accessorIdHasBeenSet = true; m_accessorId = value; }
48 inline void SetAccessorId(Aws::String&& value) { m_accessorIdHasBeenSet = true; m_accessorId = std::move(value); }
49 inline void SetAccessorId(const char* value) { m_accessorIdHasBeenSet = true; m_accessorId.assign(value); }
50 inline BatchError& WithAccessorId(const Aws::String& value) { SetAccessorId(value); return *this;}
51 inline BatchError& WithAccessorId(Aws::String&& value) { SetAccessorId(std::move(value)); return *this;}
52 inline BatchError& WithAccessorId(const char* value) { SetAccessorId(value); return *this;}
54
56
59 inline int GetError() const{ return m_error; }
60 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
61 inline void SetError(int value) { m_errorHasBeenSet = true; m_error = value; }
62 inline BatchError& WithError(int value) { SetError(value); return *this;}
64
66
69 inline const Aws::String& GetMessage() const{ return m_message; }
70 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
71 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
72 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
73 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
74 inline BatchError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
75 inline BatchError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
76 inline BatchError& WithMessage(const char* value) { SetMessage(value); return *this;}
78 private:
79
80 Aws::String m_accessorId;
81 bool m_accessorIdHasBeenSet = false;
82
83 int m_error;
84 bool m_errorHasBeenSet = false;
85
86 Aws::String m_message;
87 bool m_messageHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace repostspace
92} // namespace Aws
void SetAccessorId(const Aws::String &value)
Definition BatchError.h:47
AWS_REPOSTSPACE_API BatchError()
void SetAccessorId(Aws::String &&value)
Definition BatchError.h:48
void SetAccessorId(const char *value)
Definition BatchError.h:49
BatchError & WithMessage(const Aws::String &value)
Definition BatchError.h:74
AWS_REPOSTSPACE_API BatchError(Aws::Utils::Json::JsonView jsonValue)
BatchError & WithMessage(const char *value)
Definition BatchError.h:76
BatchError & WithAccessorId(Aws::String &&value)
Definition BatchError.h:51
void SetMessage(const Aws::String &value)
Definition BatchError.h:71
BatchError & WithMessage(Aws::String &&value)
Definition BatchError.h:75
AWS_REPOSTSPACE_API BatchError & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMessage() const
Definition BatchError.h:69
BatchError & WithAccessorId(const char *value)
Definition BatchError.h:52
AWS_REPOSTSPACE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMessage(const char *value)
Definition BatchError.h:73
BatchError & WithAccessorId(const Aws::String &value)
Definition BatchError.h:50
const Aws::String & GetAccessorId() const
Definition BatchError.h:45
void SetMessage(Aws::String &&value)
Definition BatchError.h:72
BatchError & WithError(int value)
Definition BatchError.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue