/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::DynamoDB::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; ImportTableRequest::ImportTableRequest() : m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true), m_s3BucketSourceHasBeenSet(false), m_inputFormat(InputFormat::NOT_SET), m_inputFormatHasBeenSet(false), m_inputFormatOptionsHasBeenSet(false), m_inputCompressionType(InputCompressionType::NOT_SET), m_inputCompressionTypeHasBeenSet(false), m_tableCreationParametersHasBeenSet(false) { } Aws::String ImportTableRequest::SerializePayload() const { JsonValue payload; if(m_clientTokenHasBeenSet) { payload.WithString("ClientToken", m_clientToken); } if(m_s3BucketSourceHasBeenSet) { payload.WithObject("S3BucketSource", m_s3BucketSource.Jsonize()); } if(m_inputFormatHasBeenSet) { payload.WithString("InputFormat", InputFormatMapper::GetNameForInputFormat(m_inputFormat)); } if(m_inputFormatOptionsHasBeenSet) { payload.WithObject("InputFormatOptions", m_inputFormatOptions.Jsonize()); } if(m_inputCompressionTypeHasBeenSet) { payload.WithString("InputCompressionType", InputCompressionTypeMapper::GetNameForInputCompressionType(m_inputCompressionType)); } if(m_tableCreationParametersHasBeenSet) { payload.WithObject("TableCreationParameters", m_tableCreationParameters.Jsonize()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection ImportTableRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "DynamoDB_20120810.ImportTable")); return headers; }