AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RejectedRecordsException.h
1
6#pragma once
7#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/timestream-write/model/RejectedRecord.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace TimestreamWrite
24{
25namespace Model
26{
27
48 {
49 public:
50 AWS_TIMESTREAMWRITE_API RejectedRecordsException();
51 AWS_TIMESTREAMWRITE_API RejectedRecordsException(Aws::Utils::Json::JsonView jsonValue);
53 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
54
55
57
58 inline const Aws::String& GetMessage() const{ return m_message; }
59 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
60 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
61 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
62 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
63 inline RejectedRecordsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
64 inline RejectedRecordsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
65 inline RejectedRecordsException& WithMessage(const char* value) { SetMessage(value); return *this;}
67
69
72 inline const Aws::Vector<RejectedRecord>& GetRejectedRecords() const{ return m_rejectedRecords; }
73 inline bool RejectedRecordsHasBeenSet() const { return m_rejectedRecordsHasBeenSet; }
74 inline void SetRejectedRecords(const Aws::Vector<RejectedRecord>& value) { m_rejectedRecordsHasBeenSet = true; m_rejectedRecords = value; }
75 inline void SetRejectedRecords(Aws::Vector<RejectedRecord>&& value) { m_rejectedRecordsHasBeenSet = true; m_rejectedRecords = std::move(value); }
78 inline RejectedRecordsException& AddRejectedRecords(const RejectedRecord& value) { m_rejectedRecordsHasBeenSet = true; m_rejectedRecords.push_back(value); return *this; }
79 inline RejectedRecordsException& AddRejectedRecords(RejectedRecord&& value) { m_rejectedRecordsHasBeenSet = true; m_rejectedRecords.push_back(std::move(value)); return *this; }
81 private:
82
83 Aws::String m_message;
84 bool m_messageHasBeenSet = false;
85
86 Aws::Vector<RejectedRecord> m_rejectedRecords;
87 bool m_rejectedRecordsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace TimestreamWrite
92} // namespace Aws
const Aws::Vector< RejectedRecord > & GetRejectedRecords() const
RejectedRecordsException & WithRejectedRecords(const Aws::Vector< RejectedRecord > &value)
void SetRejectedRecords(const Aws::Vector< RejectedRecord > &value)
AWS_TIMESTREAMWRITE_API RejectedRecordsException(Aws::Utils::Json::JsonView jsonValue)
RejectedRecordsException & AddRejectedRecords(RejectedRecord &&value)
RejectedRecordsException & WithMessage(const Aws::String &value)
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TIMESTREAMWRITE_API RejectedRecordsException & operator=(Aws::Utils::Json::JsonView jsonValue)
RejectedRecordsException & WithMessage(Aws::String &&value)
void SetRejectedRecords(Aws::Vector< RejectedRecord > &&value)
RejectedRecordsException & WithRejectedRecords(Aws::Vector< RejectedRecord > &&value)
RejectedRecordsException & WithMessage(const char *value)
RejectedRecordsException & AddRejectedRecords(const RejectedRecord &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue