/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the dynamodb-2012-08-10.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.DynamoDBv2.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.DynamoDBv2.Model.Internal.MarshallTransformations
{
///
/// Response Unmarshaller for ExportDescription Object
///
public class ExportDescriptionUnmarshaller : IUnmarshaller, IUnmarshaller
{
///
/// Unmarshaller the response from the service to the response class.
///
///
///
ExportDescription IUnmarshaller.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
///
/// Unmarshaller the response from the service to the response class.
///
///
///
public ExportDescription Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ExportDescription unmarshalledObject = new ExportDescription();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("BilledSizeBytes", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.BilledSizeBytes = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ClientToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ClientToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EndTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.EndTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ExportArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ExportArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ExportFormat", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ExportFormat = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ExportManifest", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ExportManifest = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ExportStatus", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ExportStatus = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ExportTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.ExportTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("FailureCode", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.FailureCode = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("FailureMessage", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.FailureMessage = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ItemCount", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.ItemCount = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("S3Bucket", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.S3Bucket = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("S3BucketOwner", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.S3BucketOwner = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("S3Prefix", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.S3Prefix = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("S3SseAlgorithm", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.S3SseAlgorithm = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("S3SseKmsKeyId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.S3SseKmsKeyId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StartTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.StartTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("TableArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.TableArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("TableId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.TableId = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ExportDescriptionUnmarshaller _instance = new ExportDescriptionUnmarshaller();
///
/// Gets the singleton.
///
public static ExportDescriptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}