public static CreateDataSourceResponse Unmarshall(UnmarshallerContext _ctx) { CreateDataSourceResponse createDataSourceResponse = new CreateDataSourceResponse(); createDataSourceResponse.HttpResponse = _ctx.HttpResponse; createDataSourceResponse.RequestId = _ctx.StringValue("CreateDataSource.RequestId"); createDataSourceResponse.Id = _ctx.StringValue("CreateDataSource.Id"); return(createDataSourceResponse); }
public static CreateDataSourceResponse Unmarshall(UnmarshallerContext _ctx) { CreateDataSourceResponse createDataSourceResponse = new CreateDataSourceResponse(); createDataSourceResponse.HttpResponse = _ctx.HttpResponse; createDataSourceResponse.Success = _ctx.BooleanValue("CreateDataSource.Success"); createDataSourceResponse.HttpStatusCode = _ctx.StringValue("CreateDataSource.HttpStatusCode"); createDataSourceResponse.Data = _ctx.LongValue("CreateDataSource.Data"); createDataSourceResponse.RequestId = _ctx.StringValue("CreateDataSource.RequestId"); return(createDataSourceResponse); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateDataSourceResponse response = new CreateDataSourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Id = unmarshaller.Unmarshall(context); continue; } } return(response); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateDataSourceResponse response = new CreateDataSourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CreationStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DataSourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DataSourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RequestId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RequestId = unmarshaller.Unmarshall(context); continue; } } response.Status = (int)context.ResponseData.StatusCode; return(response); }