/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Firehose { namespace Model { /** */ class AWS_FIREHOSE_API PutRecordBatchRequest : public FirehoseRequest { public: PutRecordBatchRequest(); // 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 "PutRecordBatch"; } 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 PutRecordBatchRequest& WithDeliveryStreamName(const Aws::String& value) { SetDeliveryStreamName(value); return *this;} /** *

The name of the delivery stream.

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

The name of the delivery stream.

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

One or more records.

*/ inline const Aws::Vector& GetRecords() const{ return m_records; } /** *

One or more records.

*/ inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; } /** *

One or more records.

*/ inline void SetRecords(const Aws::Vector& value) { m_recordsHasBeenSet = true; m_records = value; } /** *

One or more records.

*/ inline void SetRecords(Aws::Vector&& value) { m_recordsHasBeenSet = true; m_records = std::move(value); } /** *

One or more records.

*/ inline PutRecordBatchRequest& WithRecords(const Aws::Vector& value) { SetRecords(value); return *this;} /** *

One or more records.

*/ inline PutRecordBatchRequest& WithRecords(Aws::Vector&& value) { SetRecords(std::move(value)); return *this;} /** *

One or more records.

*/ inline PutRecordBatchRequest& AddRecords(const Record& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; } /** *

One or more records.

*/ inline PutRecordBatchRequest& AddRecords(Record&& value) { m_recordsHasBeenSet = true; m_records.push_back(std::move(value)); return *this; } private: Aws::String m_deliveryStreamName; bool m_deliveryStreamNameHasBeenSet; Aws::Vector m_records; bool m_recordsHasBeenSet; }; } // namespace Model } // namespace Firehose } // namespace Aws