Returns information about the CreateInstance response and response metadata.
Inheritance: CreateInstanceResult
コード例 #1
0
 public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
 {
   CreateInstanceResponse response = new CreateInstanceResponse();          
   
   context.Read();
   
   UnmarshallResult(context,response);
   return response;
 }
コード例 #2
0
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            CreateInstanceResponse response = new CreateInstanceResponse();

              context.Read();

              response.CreateInstanceResult = CreateInstanceResultUnmarshaller.GetInstance().Unmarshall(context);

              return response;
        }
コード例 #3
0
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            CreateInstanceResponse response = new CreateInstanceResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("InstanceId", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.InstanceId = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
コード例 #4
0
       private static void UnmarshallResult(JsonUnmarshallerContext context,CreateInstanceResponse response)
       {
         
           int originalDepth = context.CurrentDepth;
           int targetDepth = originalDepth + 1;
           while (context.Read())
           {
             
             if (context.TestExpression("InstanceId", targetDepth))
             {
               context.Read();
               response.InstanceId = StringUnmarshaller.GetInstance().Unmarshall(context);
               continue;
             }
 
               if (context.CurrentDepth <= originalDepth)
               {                   
                   return;
               }
           }
                       
           return;
       }