/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Firehose { namespace Model { /** */ class AWS_FIREHOSE_API PutRecordRequest : public FirehoseRequest { public: PutRecordRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutRecord"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the delivery stream.

*/ inline const Aws::String& GetDeliveryStreamName() const{ return m_deliveryStreamName; } /** *

The name of the delivery stream.

*/ inline bool DeliveryStreamNameHasBeenSet() const { return m_deliveryStreamNameHasBeenSet; } /** *

The name of the delivery stream.

*/ inline void SetDeliveryStreamName(const Aws::String& value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName = value; } /** *

The name of the delivery stream.

*/ inline void SetDeliveryStreamName(Aws::String&& value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName = std::move(value); } /** *

The name of the delivery stream.

*/ inline void SetDeliveryStreamName(const char* value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName.assign(value); } /** *

The name of the delivery stream.

*/ inline PutRecordRequest& WithDeliveryStreamName(const Aws::String& value) { SetDeliveryStreamName(value); return *this;} /** *

The name of the delivery stream.

*/ inline PutRecordRequest& WithDeliveryStreamName(Aws::String&& value) { SetDeliveryStreamName(std::move(value)); return *this;} /** *

The name of the delivery stream.

*/ inline PutRecordRequest& WithDeliveryStreamName(const char* value) { SetDeliveryStreamName(value); return *this;} /** *

The record.

*/ inline const Record& GetRecord() const{ return m_record; } /** *

The record.

*/ inline bool RecordHasBeenSet() const { return m_recordHasBeenSet; } /** *

The record.

*/ inline void SetRecord(const Record& value) { m_recordHasBeenSet = true; m_record = value; } /** *

The record.

*/ inline void SetRecord(Record&& value) { m_recordHasBeenSet = true; m_record = std::move(value); } /** *

The record.

*/ inline PutRecordRequest& WithRecord(const Record& value) { SetRecord(value); return *this;} /** *

The record.

*/ inline PutRecordRequest& WithRecord(Record&& value) { SetRecord(std::move(value)); return *this;} private: Aws::String m_deliveryStreamName; bool m_deliveryStreamNameHasBeenSet; Record m_record; bool m_recordHasBeenSet; }; } // namespace Model } // namespace Firehose } // namespace Aws