/*
* 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 clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
///
/// BatchReadOperation Marshaller
///
public class BatchReadOperationMarshaller : IRequestMarshaller
{
///
/// Unmarshaller the response from the service to the response class.
///
///
///
///
public void Marshall(BatchReadOperation requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetGetLinkAttributes())
{
context.Writer.WritePropertyName("GetLinkAttributes");
context.Writer.WriteObjectStart();
var marshaller = BatchGetLinkAttributesMarshaller.Instance;
marshaller.Marshall(requestObject.GetLinkAttributes, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetGetObjectAttributes())
{
context.Writer.WritePropertyName("GetObjectAttributes");
context.Writer.WriteObjectStart();
var marshaller = BatchGetObjectAttributesMarshaller.Instance;
marshaller.Marshall(requestObject.GetObjectAttributes, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetGetObjectInformation())
{
context.Writer.WritePropertyName("GetObjectInformation");
context.Writer.WriteObjectStart();
var marshaller = BatchGetObjectInformationMarshaller.Instance;
marshaller.Marshall(requestObject.GetObjectInformation, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetListAttachedIndices())
{
context.Writer.WritePropertyName("ListAttachedIndices");
context.Writer.WriteObjectStart();
var marshaller = BatchListAttachedIndicesMarshaller.Instance;
marshaller.Marshall(requestObject.ListAttachedIndices, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetListIncomingTypedLinks())
{
context.Writer.WritePropertyName("ListIncomingTypedLinks");
context.Writer.WriteObjectStart();
var marshaller = BatchListIncomingTypedLinksMarshaller.Instance;
marshaller.Marshall(requestObject.ListIncomingTypedLinks, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetListIndex())
{
context.Writer.WritePropertyName("ListIndex");
context.Writer.WriteObjectStart();
var marshaller = BatchListIndexMarshaller.Instance;
marshaller.Marshall(requestObject.ListIndex, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetListObjectAttributes())
{
context.Writer.WritePropertyName("ListObjectAttributes");
context.Writer.WriteObjectStart();
var marshaller = BatchListObjectAttributesMarshaller.Instance;
marshaller.Marshall(requestObject.ListObjectAttributes, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetListObjectChildren())
{
context.Writer.WritePropertyName("ListObjectChildren");
context.Writer.WriteObjectStart();
var marshaller = BatchListObjectChildrenMarshaller.Instance;
marshaller.Marshall(requestObject.ListObjectChildren, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetListObjectParentPaths())
{
context.Writer.WritePropertyName("ListObjectParentPaths");
context.Writer.WriteObjectStart();
var marshaller = BatchListObjectParentPathsMarshaller.Instance;
marshaller.Marshall(requestObject.ListObjectParentPaths, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetListObjectParents())
{
context.Writer.WritePropertyName("ListObjectParents");
context.Writer.WriteObjectStart();
var marshaller = BatchListObjectParentsMarshaller.Instance;
marshaller.Marshall(requestObject.ListObjectParents, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetListObjectPolicies())
{
context.Writer.WritePropertyName("ListObjectPolicies");
context.Writer.WriteObjectStart();
var marshaller = BatchListObjectPoliciesMarshaller.Instance;
marshaller.Marshall(requestObject.ListObjectPolicies, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetListOutgoingTypedLinks())
{
context.Writer.WritePropertyName("ListOutgoingTypedLinks");
context.Writer.WriteObjectStart();
var marshaller = BatchListOutgoingTypedLinksMarshaller.Instance;
marshaller.Marshall(requestObject.ListOutgoingTypedLinks, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetListPolicyAttachments())
{
context.Writer.WritePropertyName("ListPolicyAttachments");
context.Writer.WriteObjectStart();
var marshaller = BatchListPolicyAttachmentsMarshaller.Instance;
marshaller.Marshall(requestObject.ListPolicyAttachments, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetLookupPolicy())
{
context.Writer.WritePropertyName("LookupPolicy");
context.Writer.WriteObjectStart();
var marshaller = BatchLookupPolicyMarshaller.Instance;
marshaller.Marshall(requestObject.LookupPolicy, context);
context.Writer.WriteObjectEnd();
}
}
///
/// Singleton Marshaller.
///
public readonly static BatchReadOperationMarshaller Instance = new BatchReadOperationMarshaller();
}
}