/* * 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 codedeploy-2014-10-06.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.CodeDeploy.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CodeDeploy.Model.Internal.MarshallTransformations { /// /// Response Unmarshaller for DeploymentInfo Object /// public class DeploymentInfoUnmarshaller : IUnmarshaller, IUnmarshaller { /// /// Unmarshaller the response from the service to the response class. /// /// /// DeploymentInfo IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// /// Unmarshaller the response from the service to the response class. /// /// /// public DeploymentInfo Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; DeploymentInfo unmarshalledObject = new DeploymentInfo(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("additionalDeploymentStatusInfo", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AdditionalDeploymentStatusInfo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("applicationName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ApplicationName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("autoRollbackConfiguration", targetDepth)) { var unmarshaller = AutoRollbackConfigurationUnmarshaller.Instance; unmarshalledObject.AutoRollbackConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("blueGreenDeploymentConfiguration", targetDepth)) { var unmarshaller = BlueGreenDeploymentConfigurationUnmarshaller.Instance; unmarshalledObject.BlueGreenDeploymentConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("completeTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CompleteTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("computePlatform", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ComputePlatform = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreateTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("creator", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Creator = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deploymentConfigName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DeploymentConfigName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deploymentGroupName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DeploymentGroupName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deploymentId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DeploymentId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deploymentOverview", targetDepth)) { var unmarshaller = DeploymentOverviewUnmarshaller.Instance; unmarshalledObject.DeploymentOverview = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deploymentStatusMessages", targetDepth)) { var unmarshaller = new ListUnmarshaller(StringUnmarshaller.Instance); unmarshalledObject.DeploymentStatusMessages = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deploymentStyle", targetDepth)) { var unmarshaller = DeploymentStyleUnmarshaller.Instance; unmarshalledObject.DeploymentStyle = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("errorInformation", targetDepth)) { var unmarshaller = ErrorInformationUnmarshaller.Instance; unmarshalledObject.ErrorInformation = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("externalId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ExternalId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("fileExistsBehavior", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FileExistsBehavior = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ignoreApplicationStopFailures", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IgnoreApplicationStopFailures = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("instanceTerminationWaitTimeStarted", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.InstanceTerminationWaitTimeStarted = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("loadBalancerInfo", targetDepth)) { var unmarshaller = LoadBalancerInfoUnmarshaller.Instance; unmarshalledObject.LoadBalancerInfo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("overrideAlarmConfiguration", targetDepth)) { var unmarshaller = AlarmConfigurationUnmarshaller.Instance; unmarshalledObject.OverrideAlarmConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("previousRevision", targetDepth)) { var unmarshaller = RevisionLocationUnmarshaller.Instance; unmarshalledObject.PreviousRevision = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("relatedDeployments", targetDepth)) { var unmarshaller = RelatedDeploymentsUnmarshaller.Instance; unmarshalledObject.RelatedDeployments = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("revision", targetDepth)) { var unmarshaller = RevisionLocationUnmarshaller.Instance; unmarshalledObject.Revision = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("rollbackInfo", targetDepth)) { var unmarshaller = RollbackInfoUnmarshaller.Instance; unmarshalledObject.RollbackInfo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.StartTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("targetInstances", targetDepth)) { var unmarshaller = TargetInstancesUnmarshaller.Instance; unmarshalledObject.TargetInstances = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("updateOutdatedInstancesOnly", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.UpdateOutdatedInstancesOnly = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DeploymentInfoUnmarshaller _instance = new DeploymentInfoUnmarshaller(); /// /// Gets the singleton. /// public static DeploymentInfoUnmarshaller Instance { get { return _instance; } } } }