This is the response object from the DescribePatchGroupState operation.
Inheritance: Amazon.Runtime.AmazonWebServiceResponse
コード例 #1
0
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            DescribePatchGroupStateResponse response = new DescribePatchGroupStateResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("Instances", targetDepth))
                {
                    var unmarshaller = IntUnmarshaller.Instance;
                    response.Instances = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("InstancesWithFailedPatches", targetDepth))
                {
                    var unmarshaller = IntUnmarshaller.Instance;
                    response.InstancesWithFailedPatches = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("InstancesWithInstalledOtherPatches", targetDepth))
                {
                    var unmarshaller = IntUnmarshaller.Instance;
                    response.InstancesWithInstalledOtherPatches = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("InstancesWithInstalledPatches", targetDepth))
                {
                    var unmarshaller = IntUnmarshaller.Instance;
                    response.InstancesWithInstalledPatches = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("InstancesWithMissingPatches", targetDepth))
                {
                    var unmarshaller = IntUnmarshaller.Instance;
                    response.InstancesWithMissingPatches = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("InstancesWithNotApplicablePatches", targetDepth))
                {
                    var unmarshaller = IntUnmarshaller.Instance;
                    response.InstancesWithNotApplicablePatches = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }