@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AttachVolumeResult == false) return false; AttachVolumeResult other = (AttachVolumeResult) obj; if (other.getAttachment() == null ^ this.getAttachment() == null) return false; if (other.getAttachment() != null && other.getAttachment().equals(this.getAttachment()) == false) return false; return true; }
/** * <p> * Describes volume attachment details. * </p> * * @param attachment * Describes volume attachment details. * @return Returns a reference to this object so that method calls can be chained together. */ public AttachVolumeResult withAttachment(VolumeAttachment attachment) { setAttachment(attachment); return this; }
public AttachVolumeResult unmarshall(StaxUnmarshallerContext context) throws Exception { AttachVolumeResult attachVolumeResult = new AttachVolumeResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return attachVolumeResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { attachVolumeResult.setAttachment(VolumeAttachmentStaxUnmarshaller.getInstance().unmarshall(context)); continue; } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return attachVolumeResult; } } } }
public AttachVolumeResult unmarshall(StaxUnmarshallerContext context) throws Exception { AttachVolumeResult attachVolumeResult = new AttachVolumeResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return attachVolumeResult; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression(".", targetDepth)) { attachVolumeResult.setAttachment(VolumeAttachmentStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { return attachVolumeResult; } } } }
public AttachVolumeResult unmarshall(StaxUnmarshallerContext context) throws Exception { AttachVolumeResult attachVolumeResult = new AttachVolumeResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return attachVolumeResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { attachVolumeResult.setAttachment(VolumeAttachmentStaxUnmarshaller.getInstance().unmarshall(context)); continue; } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return attachVolumeResult; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAttachment() == null) ? 0 : getAttachment().hashCode()); return hashCode; }
/** * <p> * Describes volume attachment details. * </p> * * @param attachment * Describes volume attachment details. * @return Returns a reference to this object so that method calls can be chained together. */ public AttachVolumeResult withAttachment(VolumeAttachment attachment) { setAttachment(attachment); 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 (getAttachment() != null) sb.append("Attachment: ").append(getAttachment()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AttachVolumeResult == false) return false; AttachVolumeResult other = (AttachVolumeResult)obj; if (other.getAttachment() == null ^ this.getAttachment() == null) return false; if (other.getAttachment() != null && other.getAttachment().equals(this.getAttachment()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAttachment() == null) ? 0 : getAttachment().hashCode()); return hashCode; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAttachment() != null) sb.append("Attachment: " + getAttachment() ); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AttachVolumeResult == false) return false; AttachVolumeResult other = (AttachVolumeResult) obj; if (other.getAttachment() == null ^ this.getAttachment() == null) return false; if (other.getAttachment() != null && other.getAttachment().equals(this.getAttachment()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAttachment() == null) ? 0 : getAttachment().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 (getAttachment() != null) sb.append("Attachment: ").append(getAttachment()); sb.append("}"); return sb.toString(); }