public static CreateClusterV2Response Unmarshall(UnmarshallerContext context) { CreateClusterV2Response createClusterV2Response = new CreateClusterV2Response(); createClusterV2Response.HttpResponse = context.HttpResponse; createClusterV2Response.RequestId = context.StringValue("CreateClusterV2.RequestId"); createClusterV2Response.ClusterId = context.StringValue("CreateClusterV2.ClusterId"); createClusterV2Response.EmrOrderId = context.StringValue("CreateClusterV2.EmrOrderId"); createClusterV2Response.MasterOrderId = context.StringValue("CreateClusterV2.MasterOrderId"); createClusterV2Response.CoreOrderId = context.StringValue("CreateClusterV2.CoreOrderId"); return(createClusterV2Response); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateClusterV2Response response = new CreateClusterV2Response(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("clusterArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ClusterArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("clusterName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ClusterName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("clusterType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ClusterType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("state", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.State = unmarshaller.Unmarshall(context); continue; } } return(response); }