AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 BatchWriteExceptionType GetType() const { return m_type; }
53 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
54 inline void SetType(BatchWriteExceptionType value) { m_typeHasBeenSet = true; m_type = value; }
55 inline BatchWriteException& WithType(BatchWriteExceptionType value) { SetType(value); return *this;}
57
59
60 inline const Aws::String& GetMessage() const { return m_message; }
61 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
62 template<typename MessageT = Aws::String>
63 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
64 template<typename MessageT = Aws::String>
65 BatchWriteException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
67 private:
68
69 int m_index{0};
70 bool m_indexHasBeenSet = false;
71
73 bool m_typeHasBeenSet = false;
74
75 Aws::String m_message;
76 bool m_messageHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace CloudDirectory
81} // namespace Aws
AWS_CLOUDDIRECTORY_API BatchWriteException()=default
BatchWriteException & WithMessage(MessageT &&value)
AWS_CLOUDDIRECTORY_API BatchWriteException(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(BatchWriteExceptionType value)
AWS_CLOUDDIRECTORY_API BatchWriteException & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchWriteException & WithType(BatchWriteExceptionType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue