AWS SDK for C++  1.9.123
AWS SDK for C++
PutRecordRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Firehose
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetDeliveryStreamName() const{ return m_deliveryStreamName; }
42 
46  inline bool DeliveryStreamNameHasBeenSet() const { return m_deliveryStreamNameHasBeenSet; }
47 
51  inline void SetDeliveryStreamName(const Aws::String& value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName = value; }
52 
56  inline void SetDeliveryStreamName(Aws::String&& value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName = std::move(value); }
57 
61  inline void SetDeliveryStreamName(const char* value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName.assign(value); }
62 
66  inline PutRecordRequest& WithDeliveryStreamName(const Aws::String& value) { SetDeliveryStreamName(value); return *this;}
67 
71  inline PutRecordRequest& WithDeliveryStreamName(Aws::String&& value) { SetDeliveryStreamName(std::move(value)); return *this;}
72 
76  inline PutRecordRequest& WithDeliveryStreamName(const char* value) { SetDeliveryStreamName(value); return *this;}
77 
78 
82  inline const Record& GetRecord() const{ return m_record; }
83 
87  inline bool RecordHasBeenSet() const { return m_recordHasBeenSet; }
88 
92  inline void SetRecord(const Record& value) { m_recordHasBeenSet = true; m_record = value; }
93 
97  inline void SetRecord(Record&& value) { m_recordHasBeenSet = true; m_record = std::move(value); }
98 
102  inline PutRecordRequest& WithRecord(const Record& value) { SetRecord(value); return *this;}
103 
107  inline PutRecordRequest& WithRecord(Record&& value) { SetRecord(std::move(value)); return *this;}
108 
109  private:
110 
111  Aws::String m_deliveryStreamName;
112  bool m_deliveryStreamNameHasBeenSet;
113 
114  Record m_record;
115  bool m_recordHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace Firehose
120 } // namespace Aws
Aws::Firehose::Model::PutRecordRequest::WithRecord
PutRecordRequest & WithRecord(Record &&value)
Definition: PutRecordRequest.h:107
Aws::Firehose::Model::PutRecordRequest::PutRecordRequest
PutRecordRequest()
Aws::Firehose::FirehoseRequest
Definition: FirehoseRequest.h:17
Aws::Firehose::Model::PutRecordRequest::WithRecord
PutRecordRequest & WithRecord(const Record &value)
Definition: PutRecordRequest.h:102
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Firehose::Model::PutRecordRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Firehose::Model::PutRecordRequest
Definition: PutRecordRequest.h:23
Aws::Firehose::Model::PutRecordRequest::SetDeliveryStreamName
void SetDeliveryStreamName(const Aws::String &value)
Definition: PutRecordRequest.h:51
Aws::Firehose::Model::PutRecordRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Firehose::Model::PutRecordRequest::WithDeliveryStreamName
PutRecordRequest & WithDeliveryStreamName(Aws::String &&value)
Definition: PutRecordRequest.h:71
Record.h
Aws::Firehose::Model::PutRecordRequest::GetDeliveryStreamName
const Aws::String & GetDeliveryStreamName() const
Definition: PutRecordRequest.h:41
Aws::Firehose::Model::PutRecordRequest::WithDeliveryStreamName
PutRecordRequest & WithDeliveryStreamName(const Aws::String &value)
Definition: PutRecordRequest.h:66
Aws::Firehose::Model::PutRecordRequest::WithDeliveryStreamName
PutRecordRequest & WithDeliveryStreamName(const char *value)
Definition: PutRecordRequest.h:76
Aws::Firehose::Model::PutRecordRequest::SetDeliveryStreamName
void SetDeliveryStreamName(const char *value)
Definition: PutRecordRequest.h:61
Aws::Firehose::Model::PutRecordRequest::GetRecord
const Record & GetRecord() const
Definition: PutRecordRequest.h:82
AWS_FIREHOSE_API
#define AWS_FIREHOSE_API
Definition: Firehose_EXPORTS.h:28
AWSString.h
Aws::Firehose::Model::PutRecordRequest::SetDeliveryStreamName
void SetDeliveryStreamName(Aws::String &&value)
Definition: PutRecordRequest.h:56
Firehose_EXPORTS.h
Aws::Firehose::Model::PutRecordRequest::SetRecord
void SetRecord(const Record &value)
Definition: PutRecordRequest.h:92
Aws::Firehose::Model::PutRecordRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutRecordRequest.h:31
Aws::Firehose::Model::Record
Definition: Record.h:32
Aws
Definition: AccessManagementClient.h:15
Aws::Firehose::Model::PutRecordRequest::RecordHasBeenSet
bool RecordHasBeenSet() const
Definition: PutRecordRequest.h:87
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Firehose::Model::PutRecordRequest::DeliveryStreamNameHasBeenSet
bool DeliveryStreamNameHasBeenSet() const
Definition: PutRecordRequest.h:46
FirehoseRequest.h
Aws::Firehose::Model::PutRecordRequest::SetRecord
void SetRecord(Record &&value)
Definition: PutRecordRequest.h:97