AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ReasonT = Aws::String>
83 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
84 template<typename ReasonT = Aws::String>
85 RejectedRecord& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
87
89
94 inline long long GetExistingVersion() const { return m_existingVersion; }
95 inline bool ExistingVersionHasBeenSet() const { return m_existingVersionHasBeenSet; }
96 inline void SetExistingVersion(long long value) { m_existingVersionHasBeenSet = true; m_existingVersion = value; }
97 inline RejectedRecord& WithExistingVersion(long long value) { SetExistingVersion(value); return *this;}
99 private:
100
101 int m_recordIndex{0};
102 bool m_recordIndexHasBeenSet = false;
103
104 Aws::String m_reason;
105 bool m_reasonHasBeenSet = false;
106
107 long long m_existingVersion{0};
108 bool m_existingVersionHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace TimestreamWrite
113} // 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