/** * 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 Kinesis { namespace Model { /** *

A PutRecords request.

See Also:

AWS * API Reference

*/ class AWS_KINESIS_API PutRecordsRequest : public KinesisRequest { public: PutRecordsRequest(); // 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 "PutRecords"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The records associated with the request.

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

The records associated with the request.

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

The records associated with the request.

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

The records associated with the request.

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

The records associated with the request.

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

The records associated with the request.

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

The records associated with the request.

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

The records associated with the request.

*/ inline PutRecordsRequest& AddRecords(PutRecordsRequestEntry&& value) { m_recordsHasBeenSet = true; m_records.push_back(std::move(value)); return *this; } /** *

The stream name associated with the request.

*/ inline const Aws::String& GetStreamName() const{ return m_streamName; } /** *

The stream name associated with the request.

*/ inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; } /** *

The stream name associated with the request.

*/ inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; } /** *

The stream name associated with the request.

*/ inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); } /** *

The stream name associated with the request.

*/ inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); } /** *

The stream name associated with the request.

*/ inline PutRecordsRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;} /** *

The stream name associated with the request.

*/ inline PutRecordsRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;} /** *

The stream name associated with the request.

*/ inline PutRecordsRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;} private: Aws::Vector m_records; bool m_recordsHasBeenSet; Aws::String m_streamName; bool m_streamNameHasBeenSet; }; } // namespace Model } // namespace Kinesis } // namespace Aws