/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Kinesis::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; SubscribeToShardRequest::SubscribeToShardRequest() : m_consumerARNHasBeenSet(false), m_shardIdHasBeenSet(false), m_startingPositionHasBeenSet(false), m_decoder(Aws::Utils::Event::EventStreamDecoder(&m_handler)) { } Aws::String SubscribeToShardRequest::SerializePayload() const { JsonValue payload; if(m_consumerARNHasBeenSet) { payload.WithString("ConsumerARN", m_consumerARN); } if(m_shardIdHasBeenSet) { payload.WithString("ShardId", m_shardId); } if(m_startingPositionHasBeenSet) { payload.WithObject("StartingPosition", m_startingPosition.Jsonize()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection SubscribeToShardRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "Kinesis_20131202.SubscribeToShard")); return headers; }