AWS SDK for C++

AWS SDK for C++ Version 1.11.924

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudDirectory {
21namespace Model {
22
30 public:
31 AWS_CLOUDDIRECTORY_API BatchWriteException() = default;
32 AWS_CLOUDDIRECTORY_API BatchWriteException(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDDIRECTORY_API BatchWriteException& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline int GetIndex() const { return m_index; }
39 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
40 inline void SetIndex(int value) {
41 m_indexHasBeenSet = true;
42 m_index = value;
43 }
44 inline BatchWriteException& WithIndex(int value) {
45 SetIndex(value);
46 return *this;
47 }
49
51
52 inline BatchWriteExceptionType GetType() const { return m_type; }
53 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
54 inline void SetType(BatchWriteExceptionType value) {
55 m_typeHasBeenSet = true;
56 m_type = value;
57 }
59 SetType(value);
60 return *this;
61 }
63
65
66 inline const Aws::String& GetMessage() const { return m_message; }
67 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
68 template <typename MessageT = Aws::String>
69 void SetMessage(MessageT&& value) {
70 m_messageHasBeenSet = true;
71 m_message = std::forward<MessageT>(value);
72 }
73 template <typename MessageT = Aws::String>
74 BatchWriteException& WithMessage(MessageT&& value) {
75 SetMessage(std::forward<MessageT>(value));
76 return *this;
77 }
79 private:
80 int m_index{0};
81
83
84 Aws::String m_message;
85 bool m_indexHasBeenSet = false;
86 bool m_typeHasBeenSet = false;
87 bool m_messageHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace CloudDirectory
92} // 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