public JobSummary unmarshall(JsonUnmarshallerContext context) throws Exception {
    JobSummary jobSummary = new JobSummary();

    int originalDepth = context.getCurrentDepth();
    String currentParentElement = context.getCurrentParentElement();
    int targetDepth = originalDepth + 1;

    JsonToken token = context.getCurrentToken();
    if (token == null) token = context.nextToken();
    if (token == VALUE_NULL) return null;

    while (true) {
      if (token == null) break;

      if (token == FIELD_NAME || token == START_OBJECT) {
        if (context.testExpression("jobId", targetDepth)) {
          context.nextToken();
          jobSummary.setJobId(context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("jobName", targetDepth)) {
          context.nextToken();
          jobSummary.setJobName(context.getUnmarshaller(String.class).unmarshall(context));
        }
      } else if (token == END_ARRAY || token == END_OBJECT) {
        if (context.getLastParsedParentElement() == null
            || context.getLastParsedParentElement().equals(currentParentElement)) {
          if (context.getCurrentDepth() <= originalDepth) break;
        }
      }
      token = context.nextToken();
    }

    return jobSummary;
  }
  public ComputeEnvironmentDetail unmarshall(JsonUnmarshallerContext context) throws Exception {
    ComputeEnvironmentDetail computeEnvironmentDetail = new ComputeEnvironmentDetail();

    int originalDepth = context.getCurrentDepth();
    String currentParentElement = context.getCurrentParentElement();
    int targetDepth = originalDepth + 1;

    JsonToken token = context.getCurrentToken();
    if (token == null) token = context.nextToken();
    if (token == VALUE_NULL) return null;

    while (true) {
      if (token == null) break;

      if (token == FIELD_NAME || token == START_OBJECT) {
        if (context.testExpression("computeEnvironmentName", targetDepth)) {
          context.nextToken();
          computeEnvironmentDetail.setComputeEnvironmentName(
              context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("computeEnvironmentArn", targetDepth)) {
          context.nextToken();
          computeEnvironmentDetail.setComputeEnvironmentArn(
              context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("ecsClusterArn", targetDepth)) {
          context.nextToken();
          computeEnvironmentDetail.setEcsClusterArn(
              context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("type", targetDepth)) {
          context.nextToken();
          computeEnvironmentDetail.setType(
              context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("state", targetDepth)) {
          context.nextToken();
          computeEnvironmentDetail.setState(
              context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("status", targetDepth)) {
          context.nextToken();
          computeEnvironmentDetail.setStatus(
              context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("statusReason", targetDepth)) {
          context.nextToken();
          computeEnvironmentDetail.setStatusReason(
              context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("computeResources", targetDepth)) {
          context.nextToken();
          computeEnvironmentDetail.setComputeResources(
              ComputeResourceJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("serviceRole", targetDepth)) {
          context.nextToken();
          computeEnvironmentDetail.setServiceRole(
              context.getUnmarshaller(String.class).unmarshall(context));
        }
      } else if (token == END_ARRAY || token == END_OBJECT) {
        if (context.getLastParsedParentElement() == null
            || context.getLastParsedParentElement().equals(currentParentElement)) {
          if (context.getCurrentDepth() <= originalDepth) break;
        }
      }
      token = context.nextToken();
    }

    return computeEnvironmentDetail;
  }