AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchWriteException.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/BatchWriteExceptionType.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 CloudDirectory
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUDDIRECTORY_API BatchWriteException();
37 AWS_CLOUDDIRECTORY_API BatchWriteException(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDDIRECTORY_API BatchWriteException& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline int GetIndex() const{ return m_index; }
45 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
46 inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
47 inline BatchWriteException& WithIndex(int value) { SetIndex(value); return *this;}
49
51
52 inline const BatchWriteExceptionType& GetType() const{ return m_type; }
53 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
54 inline void SetType(const BatchWriteExceptionType& value) { m_typeHasBeenSet = true; m_type = value; }
55 inline void SetType(BatchWriteExceptionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
56 inline BatchWriteException& WithType(const BatchWriteExceptionType& value) { SetType(value); return *this;}
57 inline BatchWriteException& WithType(BatchWriteExceptionType&& value) { SetType(std::move(value)); return *this;}
59
61
62 inline const Aws::String& GetMessage() const{ return m_message; }
63 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
64 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
65 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
66 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
67 inline BatchWriteException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
68 inline BatchWriteException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
69 inline BatchWriteException& WithMessage(const char* value) { SetMessage(value); return *this;}
71 private:
72
73 int m_index;
74 bool m_indexHasBeenSet = false;
75
77 bool m_typeHasBeenSet = false;
78
79 Aws::String m_message;
80 bool m_messageHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace CloudDirectory
85} // namespace Aws
BatchWriteException & WithMessage(const Aws::String &value)
BatchWriteException & WithMessage(const char *value)
const BatchWriteExceptionType & GetType() const
BatchWriteException & WithType(BatchWriteExceptionType &&value)
AWS_CLOUDDIRECTORY_API BatchWriteException(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
BatchWriteException & WithMessage(Aws::String &&value)
AWS_CLOUDDIRECTORY_API BatchWriteException & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchWriteException & WithType(const BatchWriteExceptionType &value)
void SetType(const BatchWriteExceptionType &value)
void SetType(BatchWriteExceptionType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue