public SqlInjectionMatchSetUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {
    SqlInjectionMatchSetUpdate sqlInjectionMatchSetUpdate = new SqlInjectionMatchSetUpdate();

    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("Action", targetDepth)) {
          context.nextToken();
          sqlInjectionMatchSetUpdate.setAction(
              context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("SqlInjectionMatchTuple", targetDepth)) {
          context.nextToken();
          sqlInjectionMatchSetUpdate.setSqlInjectionMatchTuple(
              SqlInjectionMatchTupleJsonUnmarshaller.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 sqlInjectionMatchSetUpdate;
  }
  @Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;

    if (obj instanceof SqlInjectionMatchSetUpdate == false) return false;
    SqlInjectionMatchSetUpdate other = (SqlInjectionMatchSetUpdate) obj;
    if (other.getAction() == null ^ this.getAction() == null) return false;
    if (other.getAction() != null && other.getAction().equals(this.getAction()) == false)
      return false;
    if (other.getSqlInjectionMatchTuple() == null ^ this.getSqlInjectionMatchTuple() == null)
      return false;
    if (other.getSqlInjectionMatchTuple() != null
        && other.getSqlInjectionMatchTuple().equals(this.getSqlInjectionMatchTuple()) == false)
      return false;
    return true;
  }