/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Firehose::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; PutRecordRequest::PutRecordRequest() : m_deliveryStreamNameHasBeenSet(false), m_recordHasBeenSet(false) { } Aws::String PutRecordRequest::SerializePayload() const { JsonValue payload; if(m_deliveryStreamNameHasBeenSet) { payload.WithString("DeliveryStreamName", m_deliveryStreamName); } if(m_recordHasBeenSet) { payload.WithObject("Record", m_record.Jsonize()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection PutRecordRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "Firehose_20150804.PutRecord")); return headers; }