AWS SDK for C++  1.9.103
AWS SDK for C++
PutRecordsResultEntry.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Kinesis
22 {
23 namespace Model
24 {
25 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetSequenceNumber() const{ return m_sequenceNumber; }
48 
52  inline bool SequenceNumberHasBeenSet() const { return m_sequenceNumberHasBeenSet; }
53 
57  inline void SetSequenceNumber(const Aws::String& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = value; }
58 
62  inline void SetSequenceNumber(Aws::String&& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = std::move(value); }
63 
67  inline void SetSequenceNumber(const char* value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber.assign(value); }
68 
72  inline PutRecordsResultEntry& WithSequenceNumber(const Aws::String& value) { SetSequenceNumber(value); return *this;}
73 
77  inline PutRecordsResultEntry& WithSequenceNumber(Aws::String&& value) { SetSequenceNumber(std::move(value)); return *this;}
78 
82  inline PutRecordsResultEntry& WithSequenceNumber(const char* value) { SetSequenceNumber(value); return *this;}
83 
84 
88  inline const Aws::String& GetShardId() const{ return m_shardId; }
89 
93  inline bool ShardIdHasBeenSet() const { return m_shardIdHasBeenSet; }
94 
98  inline void SetShardId(const Aws::String& value) { m_shardIdHasBeenSet = true; m_shardId = value; }
99 
103  inline void SetShardId(Aws::String&& value) { m_shardIdHasBeenSet = true; m_shardId = std::move(value); }
104 
108  inline void SetShardId(const char* value) { m_shardIdHasBeenSet = true; m_shardId.assign(value); }
109 
113  inline PutRecordsResultEntry& WithShardId(const Aws::String& value) { SetShardId(value); return *this;}
114 
118  inline PutRecordsResultEntry& WithShardId(Aws::String&& value) { SetShardId(std::move(value)); return *this;}
119 
123  inline PutRecordsResultEntry& WithShardId(const char* value) { SetShardId(value); return *this;}
124 
125 
131  inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
132 
138  inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
139 
145  inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
146 
152  inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
153 
159  inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
160 
166  inline PutRecordsResultEntry& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
167 
173  inline PutRecordsResultEntry& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
174 
180  inline PutRecordsResultEntry& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
181 
182 
190  inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
191 
199  inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
200 
208  inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
209 
217  inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
218 
226  inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
227 
235  inline PutRecordsResultEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
236 
244  inline PutRecordsResultEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
245 
253  inline PutRecordsResultEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
254 
255  private:
256 
257  Aws::String m_sequenceNumber;
258  bool m_sequenceNumberHasBeenSet;
259 
260  Aws::String m_shardId;
261  bool m_shardIdHasBeenSet;
262 
263  Aws::String m_errorCode;
264  bool m_errorCodeHasBeenSet;
265 
266  Aws::String m_errorMessage;
267  bool m_errorMessageHasBeenSet;
268  };
269 
270 } // namespace Model
271 } // namespace Kinesis
272 } // namespace Aws
Aws::Kinesis::Model::PutRecordsResultEntry::WithErrorCode
PutRecordsResultEntry & WithErrorCode(const char *value)
Definition: PutRecordsResultEntry.h:180
Aws::Kinesis::Model::PutRecordsResultEntry
Definition: PutRecordsResultEntry.h:36
Aws::Kinesis::Model::PutRecordsResultEntry::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Kinesis::Model::PutRecordsResultEntry::WithShardId
PutRecordsResultEntry & WithShardId(const Aws::String &value)
Definition: PutRecordsResultEntry.h:113
Aws::Kinesis::Model::PutRecordsResultEntry::SetSequenceNumber
void SetSequenceNumber(Aws::String &&value)
Definition: PutRecordsResultEntry.h:62
Aws::Kinesis::Model::PutRecordsResultEntry::WithShardId
PutRecordsResultEntry & WithShardId(Aws::String &&value)
Definition: PutRecordsResultEntry.h:118
Aws::Kinesis::Model::PutRecordsResultEntry::WithShardId
PutRecordsResultEntry & WithShardId(const char *value)
Definition: PutRecordsResultEntry.h:123
Aws::Kinesis::Model::PutRecordsResultEntry::WithSequenceNumber
PutRecordsResultEntry & WithSequenceNumber(const Aws::String &value)
Definition: PutRecordsResultEntry.h:72
Aws::Kinesis::Model::PutRecordsResultEntry::operator=
PutRecordsResultEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Kinesis::Model::PutRecordsResultEntry::SetShardId
void SetShardId(Aws::String &&value)
Definition: PutRecordsResultEntry.h:103
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::PutRecordsResultEntry::WithErrorCode
PutRecordsResultEntry & WithErrorCode(Aws::String &&value)
Definition: PutRecordsResultEntry.h:173
Aws::Kinesis::Model::PutRecordsResultEntry::WithErrorMessage
PutRecordsResultEntry & WithErrorMessage(Aws::String &&value)
Definition: PutRecordsResultEntry.h:244
Aws::Kinesis::Model::PutRecordsResultEntry::ErrorCodeHasBeenSet
bool ErrorCodeHasBeenSet() const
Definition: PutRecordsResultEntry.h:138
Aws::Kinesis::Model::PutRecordsResultEntry::SetShardId
void SetShardId(const Aws::String &value)
Definition: PutRecordsResultEntry.h:98
Aws::Kinesis::Model::PutRecordsResultEntry::GetShardId
const Aws::String & GetShardId() const
Definition: PutRecordsResultEntry.h:88
Aws::Kinesis::Model::PutRecordsResultEntry::SequenceNumberHasBeenSet
bool SequenceNumberHasBeenSet() const
Definition: PutRecordsResultEntry.h:52
Aws::Kinesis::Model::PutRecordsResultEntry::PutRecordsResultEntry
PutRecordsResultEntry()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Kinesis::Model::PutRecordsResultEntry::ErrorMessageHasBeenSet
bool ErrorMessageHasBeenSet() const
Definition: PutRecordsResultEntry.h:199
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Kinesis::Model::PutRecordsResultEntry::SetErrorMessage
void SetErrorMessage(const Aws::String &value)
Definition: PutRecordsResultEntry.h:208
Aws::Kinesis::Model::PutRecordsResultEntry::SetErrorCode
void SetErrorCode(const char *value)
Definition: PutRecordsResultEntry.h:159
Aws::Kinesis::Model::PutRecordsResultEntry::SetErrorMessage
void SetErrorMessage(Aws::String &&value)
Definition: PutRecordsResultEntry.h:217
Kinesis_EXPORTS.h
Aws::Kinesis::Model::PutRecordsResultEntry::SetErrorCode
void SetErrorCode(Aws::String &&value)
Definition: PutRecordsResultEntry.h:152
Aws::Kinesis::Model::PutRecordsResultEntry::SetSequenceNumber
void SetSequenceNumber(const Aws::String &value)
Definition: PutRecordsResultEntry.h:57
Aws::Kinesis::Model::PutRecordsResultEntry::WithErrorMessage
PutRecordsResultEntry & WithErrorMessage(const char *value)
Definition: PutRecordsResultEntry.h:253
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::PutRecordsResultEntry::SetShardId
void SetShardId(const char *value)
Definition: PutRecordsResultEntry.h:108
Aws::Kinesis::Model::PutRecordsResultEntry::ShardIdHasBeenSet
bool ShardIdHasBeenSet() const
Definition: PutRecordsResultEntry.h:93
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::PutRecordsResultEntry::SetSequenceNumber
void SetSequenceNumber(const char *value)
Definition: PutRecordsResultEntry.h:67
Aws::Kinesis::Model::PutRecordsResultEntry::SetErrorMessage
void SetErrorMessage(const char *value)
Definition: PutRecordsResultEntry.h:226
Aws::Kinesis::Model::PutRecordsResultEntry::WithSequenceNumber
PutRecordsResultEntry & WithSequenceNumber(Aws::String &&value)
Definition: PutRecordsResultEntry.h:77
Aws::Kinesis::Model::PutRecordsResultEntry::WithErrorMessage
PutRecordsResultEntry & WithErrorMessage(const Aws::String &value)
Definition: PutRecordsResultEntry.h:235
Aws::Kinesis::Model::PutRecordsResultEntry::SetErrorCode
void SetErrorCode(const Aws::String &value)
Definition: PutRecordsResultEntry.h:145
Aws::Kinesis::Model::PutRecordsResultEntry::GetErrorMessage
const Aws::String & GetErrorMessage() const
Definition: PutRecordsResultEntry.h:190
Aws::Kinesis::Model::PutRecordsResultEntry::WithSequenceNumber
PutRecordsResultEntry & WithSequenceNumber(const char *value)
Definition: PutRecordsResultEntry.h:82
Aws::Kinesis::Model::PutRecordsResultEntry::PutRecordsResultEntry
PutRecordsResultEntry(Aws::Utils::Json::JsonView jsonValue)
Aws::Kinesis::Model::PutRecordsResultEntry::GetErrorCode
const Aws::String & GetErrorCode() const
Definition: PutRecordsResultEntry.h:131
Aws::Kinesis::Model::PutRecordsResultEntry::GetSequenceNumber
const Aws::String & GetSequenceNumber() const
Definition: PutRecordsResultEntry.h:47
Aws::Kinesis::Model::PutRecordsResultEntry::WithErrorCode
PutRecordsResultEntry & WithErrorCode(const Aws::String &value)
Definition: PutRecordsResultEntry.h:166