AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
RejectedRecord.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace TimestreamWrite {
20namespace Model {
21
30 public:
31 AWS_TIMESTREAMWRITE_API RejectedRecord() = default;
32 AWS_TIMESTREAMWRITE_API RejectedRecord(Aws::Utils::Json::JsonView jsonValue);
33 AWS_TIMESTREAMWRITE_API RejectedRecord& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline int GetRecordIndex() const { return m_recordIndex; }
42 inline bool RecordIndexHasBeenSet() const { return m_recordIndexHasBeenSet; }
43 inline void SetRecordIndex(int value) {
44 m_recordIndexHasBeenSet = true;
45 m_recordIndex = value;
46 }
47 inline RejectedRecord& WithRecordIndex(int value) {
48 SetRecordIndex(value);
49 return *this;
50 }
52
54
80 inline const Aws::String& GetReason() const { return m_reason; }
81 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
82 template <typename ReasonT = Aws::String>
83 void SetReason(ReasonT&& value) {
84 m_reasonHasBeenSet = true;
85 m_reason = std::forward<ReasonT>(value);
86 }
87 template <typename ReasonT = Aws::String>
88 RejectedRecord& WithReason(ReasonT&& value) {
89 SetReason(std::forward<ReasonT>(value));
90 return *this;
91 }
93
95
100 inline long long GetExistingVersion() const { return m_existingVersion; }
101 inline bool ExistingVersionHasBeenSet() const { return m_existingVersionHasBeenSet; }
102 inline void SetExistingVersion(long long value) {
103 m_existingVersionHasBeenSet = true;
104 m_existingVersion = value;
105 }
106 inline RejectedRecord& WithExistingVersion(long long value) {
107 SetExistingVersion(value);
108 return *this;
109 }
111 private:
112 int m_recordIndex{0};
113
114 Aws::String m_reason;
115
116 long long m_existingVersion{0};
117 bool m_recordIndexHasBeenSet = false;
118 bool m_reasonHasBeenSet = false;
119 bool m_existingVersionHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace TimestreamWrite
124} // namespace Aws
AWS_TIMESTREAMWRITE_API RejectedRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TIMESTREAMWRITE_API RejectedRecord()=default
AWS_TIMESTREAMWRITE_API RejectedRecord(Aws::Utils::Json::JsonView jsonValue)
RejectedRecord & WithReason(ReasonT &&value)
RejectedRecord & WithExistingVersion(long long value)
RejectedRecord & WithRecordIndex(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue