-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathErrorWithMembers.h
More file actions
180 lines (156 loc) · 5.46 KB
/
ErrorWithMembers.h
File metadata and controls
180 lines (156 loc) · 5.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/json-protocol/JsonProtocol_EXPORTS.h>
#include <aws/json-protocol/model/KitchenSink.h>
#include <utility>
namespace Aws {
namespace Utils {
namespace Json {
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace JsonProtocol {
namespace Model {
class ErrorWithMembers {
public:
AWS_JSONPROTOCOL_API ErrorWithMembers() = default;
AWS_JSONPROTOCOL_API ErrorWithMembers(Aws::Utils::Json::JsonView jsonValue);
AWS_JSONPROTOCOL_API ErrorWithMembers& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_JSONPROTOCOL_API Aws::Utils::Json::JsonValue Jsonize() const;
///@{
inline const Aws::String& GetCode() const { return m_code; }
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
template <typename CodeT = Aws::String>
void SetCode(CodeT&& value) {
m_codeHasBeenSet = true;
m_code = std::forward<CodeT>(value);
}
template <typename CodeT = Aws::String>
ErrorWithMembers& WithCode(CodeT&& value) {
SetCode(std::forward<CodeT>(value));
return *this;
}
///@}
///@{
inline const KitchenSink& GetComplexData() const { return m_complexData; }
inline bool ComplexDataHasBeenSet() const { return m_complexDataHasBeenSet; }
template <typename ComplexDataT = KitchenSink>
void SetComplexData(ComplexDataT&& value) {
m_complexDataHasBeenSet = true;
m_complexData = std::forward<ComplexDataT>(value);
}
template <typename ComplexDataT = KitchenSink>
ErrorWithMembers& WithComplexData(ComplexDataT&& value) {
SetComplexData(std::forward<ComplexDataT>(value));
return *this;
}
///@}
///@{
inline int GetIntegerField() const { return m_integerField; }
inline bool IntegerFieldHasBeenSet() const { return m_integerFieldHasBeenSet; }
inline void SetIntegerField(int value) {
m_integerFieldHasBeenSet = true;
m_integerField = value;
}
inline ErrorWithMembers& WithIntegerField(int value) {
SetIntegerField(value);
return *this;
}
///@}
///@{
inline const Aws::Vector<Aws::String>& GetListField() const { return m_listField; }
inline bool ListFieldHasBeenSet() const { return m_listFieldHasBeenSet; }
template <typename ListFieldT = Aws::Vector<Aws::String>>
void SetListField(ListFieldT&& value) {
m_listFieldHasBeenSet = true;
m_listField = std::forward<ListFieldT>(value);
}
template <typename ListFieldT = Aws::Vector<Aws::String>>
ErrorWithMembers& WithListField(ListFieldT&& value) {
SetListField(std::forward<ListFieldT>(value));
return *this;
}
template <typename ListFieldT = Aws::String>
ErrorWithMembers& AddListField(ListFieldT&& value) {
m_listFieldHasBeenSet = true;
m_listField.emplace_back(std::forward<ListFieldT>(value));
return *this;
}
///@}
///@{
inline const Aws::Map<Aws::String, Aws::String>& GetMapField() const { return m_mapField; }
inline bool MapFieldHasBeenSet() const { return m_mapFieldHasBeenSet; }
template <typename MapFieldT = Aws::Map<Aws::String, Aws::String>>
void SetMapField(MapFieldT&& value) {
m_mapFieldHasBeenSet = true;
m_mapField = std::forward<MapFieldT>(value);
}
template <typename MapFieldT = Aws::Map<Aws::String, Aws::String>>
ErrorWithMembers& WithMapField(MapFieldT&& value) {
SetMapField(std::forward<MapFieldT>(value));
return *this;
}
template <typename MapFieldKeyT = Aws::String, typename MapFieldValueT = Aws::String>
ErrorWithMembers& AddMapField(MapFieldKeyT&& key, MapFieldValueT&& value) {
m_mapFieldHasBeenSet = true;
m_mapField.emplace(std::forward<MapFieldKeyT>(key), std::forward<MapFieldValueT>(value));
return *this;
}
///@}
///@{
inline const Aws::String& GetMessage() const { return m_message; }
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
template <typename MessageT = Aws::String>
void SetMessage(MessageT&& value) {
m_messageHasBeenSet = true;
m_message = std::forward<MessageT>(value);
}
template <typename MessageT = Aws::String>
ErrorWithMembers& WithMessage(MessageT&& value) {
SetMessage(std::forward<MessageT>(value));
return *this;
}
///@}
///@{
/**
* <p>abc</p>
*/
inline const Aws::String& GetStringField() const { return m_stringField; }
inline bool StringFieldHasBeenSet() const { return m_stringFieldHasBeenSet; }
template <typename StringFieldT = Aws::String>
void SetStringField(StringFieldT&& value) {
m_stringFieldHasBeenSet = true;
m_stringField = std::forward<StringFieldT>(value);
}
template <typename StringFieldT = Aws::String>
ErrorWithMembers& WithStringField(StringFieldT&& value) {
SetStringField(std::forward<StringFieldT>(value));
return *this;
}
///@}
private:
Aws::String m_code;
KitchenSink m_complexData;
int m_integerField{0};
Aws::Vector<Aws::String> m_listField;
Aws::Map<Aws::String, Aws::String> m_mapField;
Aws::String m_message;
Aws::String m_stringField;
bool m_codeHasBeenSet = false;
bool m_complexDataHasBeenSet = false;
bool m_integerFieldHasBeenSet = false;
bool m_listFieldHasBeenSet = false;
bool m_mapFieldHasBeenSet = false;
bool m_messageHasBeenSet = false;
bool m_stringFieldHasBeenSet = false;
};
} // namespace Model
} // namespace JsonProtocol
} // namespace Aws