public KinesisFirehoseOutputDescription unmarshall(JsonUnmarshallerContext context)
      throws Exception {
    KinesisFirehoseOutputDescription kinesisFirehoseOutputDescription =
        new KinesisFirehoseOutputDescription();

    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("ResourceARN", targetDepth)) {
          context.nextToken();
          kinesisFirehoseOutputDescription.setResourceARN(
              context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("RoleARN", targetDepth)) {
          context.nextToken();
          kinesisFirehoseOutputDescription.setRoleARN(
              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 kinesisFirehoseOutputDescription;
  }
  public InputDescription unmarshall(JsonUnmarshallerContext context) throws Exception {
    InputDescription inputDescription = new InputDescription();

    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("InputId", targetDepth)) {
          context.nextToken();
          inputDescription.setInputId(context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("NamePrefix", targetDepth)) {
          context.nextToken();
          inputDescription.setNamePrefix(context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("InAppStreamNames", targetDepth)) {
          context.nextToken();
          inputDescription.setInAppStreamNames(
              new ListUnmarshaller<String>(context.getUnmarshaller(String.class))
                  .unmarshall(context));
        }
        if (context.testExpression("KinesisStreamsInputDescription", targetDepth)) {
          context.nextToken();
          inputDescription.setKinesisStreamsInputDescription(
              KinesisStreamsInputDescriptionJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("KinesisFirehoseInputDescription", targetDepth)) {
          context.nextToken();
          inputDescription.setKinesisFirehoseInputDescription(
              KinesisFirehoseInputDescriptionJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("InputSchema", targetDepth)) {
          context.nextToken();
          inputDescription.setInputSchema(
              SourceSchemaJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("InputParallelism", targetDepth)) {
          context.nextToken();
          inputDescription.setInputParallelism(
              InputParallelismJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("InputStartingPositionConfiguration", targetDepth)) {
          context.nextToken();
          inputDescription.setInputStartingPositionConfiguration(
              InputStartingPositionConfigurationJsonUnmarshaller.getInstance().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 inputDescription;
  }