public AttachClassicLinkVpcResult unmarshall(StaxUnmarshallerContext context) throws Exception {
    AttachClassicLinkVpcResult attachClassicLinkVpcResult = new AttachClassicLinkVpcResult();
    int originalDepth = context.getCurrentDepth();
    int targetDepth = originalDepth + 1;

    if (context.isStartOfDocument()) targetDepth += 1;

    while (true) {
      XMLEvent xmlEvent = context.nextEvent();
      if (xmlEvent.isEndDocument()) return attachClassicLinkVpcResult;

      if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) {

        if (context.testExpression("return", targetDepth)) {
          attachClassicLinkVpcResult.setReturn(
              BooleanStaxUnmarshaller.getInstance().unmarshall(context));
          continue;
        }
      } else if (xmlEvent.isEndElement()) {
        if (context.getCurrentDepth() < originalDepth) {
          return attachClassicLinkVpcResult;
        }
      }
    }
  }
  @Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;

    if (obj instanceof AttachClassicLinkVpcResult == false) return false;
    AttachClassicLinkVpcResult other = (AttachClassicLinkVpcResult) obj;

    if (other.isReturn() == null ^ this.isReturn() == null) return false;
    if (other.isReturn() != null && other.isReturn().equals(this.isReturn()) == false) return false;
    return true;
  }