@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModifyFpgaImageAttributeResult == false) return false; ModifyFpgaImageAttributeResult other = (ModifyFpgaImageAttributeResult) obj; if (other.getFpgaImageAttribute() == null ^ this.getFpgaImageAttribute() == null) return false; if (other.getFpgaImageAttribute() != null && other.getFpgaImageAttribute().equals(this.getFpgaImageAttribute()) == false) return false; return true; }
/** * <p> * Information about the attribute. * </p> * * @param fpgaImageAttribute * Information about the attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyFpgaImageAttributeResult withFpgaImageAttribute(FpgaImageAttribute fpgaImageAttribute) { setFpgaImageAttribute(fpgaImageAttribute); return this; }
public ModifyFpgaImageAttributeResult unmarshall(StaxUnmarshallerContext context) throws Exception { ModifyFpgaImageAttributeResult modifyFpgaImageAttributeResult = new ModifyFpgaImageAttributeResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return modifyFpgaImageAttributeResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("fpgaImageAttribute", targetDepth)) { modifyFpgaImageAttributeResult.setFpgaImageAttribute(FpgaImageAttributeStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return modifyFpgaImageAttributeResult; } } } }
public ModifyFpgaImageAttributeResult unmarshall(StaxUnmarshallerContext context) throws Exception { ModifyFpgaImageAttributeResult modifyFpgaImageAttributeResult = new ModifyFpgaImageAttributeResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return modifyFpgaImageAttributeResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("fpgaImageAttribute", targetDepth)) { modifyFpgaImageAttributeResult.setFpgaImageAttribute(FpgaImageAttributeStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return modifyFpgaImageAttributeResult; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFpgaImageAttribute() == null) ? 0 : getFpgaImageAttribute().hashCode()); return hashCode; }
/** * <p> * Information about the attribute. * </p> * * @param fpgaImageAttribute * Information about the attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyFpgaImageAttributeResult withFpgaImageAttribute(FpgaImageAttribute fpgaImageAttribute) { setFpgaImageAttribute(fpgaImageAttribute); return this; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getFpgaImageAttribute() != null) sb.append("FpgaImageAttribute: ").append(getFpgaImageAttribute()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModifyFpgaImageAttributeResult == false) return false; ModifyFpgaImageAttributeResult other = (ModifyFpgaImageAttributeResult) obj; if (other.getFpgaImageAttribute() == null ^ this.getFpgaImageAttribute() == null) return false; if (other.getFpgaImageAttribute() != null && other.getFpgaImageAttribute().equals(this.getFpgaImageAttribute()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFpgaImageAttribute() == null) ? 0 : getFpgaImageAttribute().hashCode()); return hashCode; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getFpgaImageAttribute() != null) sb.append("FpgaImageAttribute: ").append(getFpgaImageAttribute()); sb.append("}"); return sb.toString(); }