AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WriteRecordsRequest.h
1
6#pragma once
7#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
8#include <aws/timestream-write/TimestreamWriteRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/timestream-write/model/Record.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace TimestreamWrite
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_TIMESTREAMWRITE_API WriteRecordsRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "WriteRecords"; }
33
34 AWS_TIMESTREAMWRITE_API Aws::String SerializePayload() const override;
35
36 AWS_TIMESTREAMWRITE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
44 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
45 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
46 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
47 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
48 inline WriteRecordsRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
49 inline WriteRecordsRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
50 inline WriteRecordsRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
52
54
57 inline const Aws::String& GetTableName() const{ return m_tableName; }
58 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
59 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
60 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
61 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
62 inline WriteRecordsRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
63 inline WriteRecordsRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
64 inline WriteRecordsRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
66
68
76 inline const Record& GetCommonAttributes() const{ return m_commonAttributes; }
77 inline bool CommonAttributesHasBeenSet() const { return m_commonAttributesHasBeenSet; }
78 inline void SetCommonAttributes(const Record& value) { m_commonAttributesHasBeenSet = true; m_commonAttributes = value; }
79 inline void SetCommonAttributes(Record&& value) { m_commonAttributesHasBeenSet = true; m_commonAttributes = std::move(value); }
80 inline WriteRecordsRequest& WithCommonAttributes(const Record& value) { SetCommonAttributes(value); return *this;}
81 inline WriteRecordsRequest& WithCommonAttributes(Record&& value) { SetCommonAttributes(std::move(value)); return *this;}
83
85
89 inline const Aws::Vector<Record>& GetRecords() const{ return m_records; }
90 inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; }
91 inline void SetRecords(const Aws::Vector<Record>& value) { m_recordsHasBeenSet = true; m_records = value; }
92 inline void SetRecords(Aws::Vector<Record>&& value) { m_recordsHasBeenSet = true; m_records = std::move(value); }
93 inline WriteRecordsRequest& WithRecords(const Aws::Vector<Record>& value) { SetRecords(value); return *this;}
94 inline WriteRecordsRequest& WithRecords(Aws::Vector<Record>&& value) { SetRecords(std::move(value)); return *this;}
95 inline WriteRecordsRequest& AddRecords(const Record& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; }
96 inline WriteRecordsRequest& AddRecords(Record&& value) { m_recordsHasBeenSet = true; m_records.push_back(std::move(value)); return *this; }
98 private:
99
100 Aws::String m_databaseName;
101 bool m_databaseNameHasBeenSet = false;
102
103 Aws::String m_tableName;
104 bool m_tableNameHasBeenSet = false;
105
106 Record m_commonAttributes;
107 bool m_commonAttributesHasBeenSet = false;
108
109 Aws::Vector<Record> m_records;
110 bool m_recordsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace TimestreamWrite
115} // namespace Aws
WriteRecordsRequest & WithCommonAttributes(const Record &value)
WriteRecordsRequest & WithRecords(const Aws::Vector< Record > &value)
WriteRecordsRequest & AddRecords(const Record &value)
WriteRecordsRequest & WithTableName(Aws::String &&value)
WriteRecordsRequest & WithDatabaseName(const Aws::String &value)
WriteRecordsRequest & WithTableName(const Aws::String &value)
const Aws::Vector< Record > & GetRecords() const
WriteRecordsRequest & WithCommonAttributes(Record &&value)
void SetRecords(const Aws::Vector< Record > &value)
AWS_TIMESTREAMWRITE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetRecords(Aws::Vector< Record > &&value)
WriteRecordsRequest & AddRecords(Record &&value)
WriteRecordsRequest & WithDatabaseName(Aws::String &&value)
WriteRecordsRequest & WithDatabaseName(const char *value)
WriteRecordsRequest & WithTableName(const char *value)
AWS_TIMESTREAMWRITE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
WriteRecordsRequest & WithRecords(Aws::Vector< Record > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector