AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutRecordRequest.h
1
6#pragma once
7#include <aws/firehose/Firehose_EXPORTS.h>
8#include <aws/firehose/FirehoseRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/firehose/model/Record.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Firehose
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_FIREHOSE_API PutRecordRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutRecord"; }
32
33 AWS_FIREHOSE_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetDeliveryStreamName() const{ return m_deliveryStreamName; }
43 inline bool DeliveryStreamNameHasBeenSet() const { return m_deliveryStreamNameHasBeenSet; }
44 inline void SetDeliveryStreamName(const Aws::String& value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName = value; }
45 inline void SetDeliveryStreamName(Aws::String&& value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName = std::move(value); }
46 inline void SetDeliveryStreamName(const char* value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName.assign(value); }
47 inline PutRecordRequest& WithDeliveryStreamName(const Aws::String& value) { SetDeliveryStreamName(value); return *this;}
48 inline PutRecordRequest& WithDeliveryStreamName(Aws::String&& value) { SetDeliveryStreamName(std::move(value)); return *this;}
49 inline PutRecordRequest& WithDeliveryStreamName(const char* value) { SetDeliveryStreamName(value); return *this;}
51
53
56 inline const Record& GetRecord() const{ return m_record; }
57 inline bool RecordHasBeenSet() const { return m_recordHasBeenSet; }
58 inline void SetRecord(const Record& value) { m_recordHasBeenSet = true; m_record = value; }
59 inline void SetRecord(Record&& value) { m_recordHasBeenSet = true; m_record = std::move(value); }
60 inline PutRecordRequest& WithRecord(const Record& value) { SetRecord(value); return *this;}
61 inline PutRecordRequest& WithRecord(Record&& value) { SetRecord(std::move(value)); return *this;}
63 private:
64
65 Aws::String m_deliveryStreamName;
66 bool m_deliveryStreamNameHasBeenSet = false;
67
68 Record m_record;
69 bool m_recordHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Firehose
74} // namespace Aws
void SetDeliveryStreamName(const Aws::String &value)
void SetDeliveryStreamName(const char *value)
AWS_FIREHOSE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
PutRecordRequest & WithRecord(const Record &value)
PutRecordRequest & WithDeliveryStreamName(Aws::String &&value)
PutRecordRequest & WithRecord(Record &&value)
AWS_FIREHOSE_API Aws::String SerializePayload() const override
const Aws::String & GetDeliveryStreamName() const
PutRecordRequest & WithDeliveryStreamName(const char *value)
void SetDeliveryStreamName(Aws::String &&value)
PutRecordRequest & WithDeliveryStreamName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String