AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RejectedRecord.h
1
6#pragma once
7#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace TimestreamWrite
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_TIMESTREAMWRITE_API RejectedRecord();
37 AWS_TIMESTREAMWRITE_API RejectedRecord(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TIMESTREAMWRITE_API RejectedRecord& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline int GetRecordIndex() const{ return m_recordIndex; }
48 inline bool RecordIndexHasBeenSet() const { return m_recordIndexHasBeenSet; }
49 inline void SetRecordIndex(int value) { m_recordIndexHasBeenSet = true; m_recordIndex = value; }
50 inline RejectedRecord& WithRecordIndex(int value) { SetRecordIndex(value); return *this;}
52
54
80 inline const Aws::String& GetReason() const{ return m_reason; }
81 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
82 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
83 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
84 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
85 inline RejectedRecord& WithReason(const Aws::String& value) { SetReason(value); return *this;}
86 inline RejectedRecord& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
87 inline RejectedRecord& WithReason(const char* value) { SetReason(value); return *this;}
89
91
96 inline long long GetExistingVersion() const{ return m_existingVersion; }
97 inline bool ExistingVersionHasBeenSet() const { return m_existingVersionHasBeenSet; }
98 inline void SetExistingVersion(long long value) { m_existingVersionHasBeenSet = true; m_existingVersion = value; }
99 inline RejectedRecord& WithExistingVersion(long long value) { SetExistingVersion(value); return *this;}
101 private:
102
103 int m_recordIndex;
104 bool m_recordIndexHasBeenSet = false;
105
106 Aws::String m_reason;
107 bool m_reasonHasBeenSet = false;
108
109 long long m_existingVersion;
110 bool m_existingVersionHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace TimestreamWrite
115} // namespace Aws
AWS_TIMESTREAMWRITE_API RejectedRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
RejectedRecord & WithReason(Aws::String &&value)
AWS_TIMESTREAMWRITE_API RejectedRecord()
RejectedRecord & WithReason(const char *value)
AWS_TIMESTREAMWRITE_API RejectedRecord(Aws::Utils::Json::JsonView jsonValue)
RejectedRecord & WithExistingVersion(long long value)
RejectedRecord & WithRecordIndex(int value)
RejectedRecord & WithReason(const Aws::String &value)
void SetReason(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue