@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AssociateTransitGatewayRouteTableResult == false) return false; AssociateTransitGatewayRouteTableResult other = (AssociateTransitGatewayRouteTableResult) obj; if (other.getAssociation() == null ^ this.getAssociation() == null) return false; if (other.getAssociation() != null && other.getAssociation().equals(this.getAssociation()) == false) return false; return true; }
/** * <p> * The ID of the association. * </p> * * @param association * The ID of the association. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateTransitGatewayRouteTableResult withAssociation(TransitGatewayAssociation association) { setAssociation(association); return this; }
public AssociateTransitGatewayRouteTableResult unmarshall(StaxUnmarshallerContext context) throws Exception { AssociateTransitGatewayRouteTableResult associateTransitGatewayRouteTableResult = new AssociateTransitGatewayRouteTableResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return associateTransitGatewayRouteTableResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("association", targetDepth)) { associateTransitGatewayRouteTableResult.setAssociation(TransitGatewayAssociationStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return associateTransitGatewayRouteTableResult; } } } }
public AssociateTransitGatewayRouteTableResult unmarshall(StaxUnmarshallerContext context) throws Exception { AssociateTransitGatewayRouteTableResult associateTransitGatewayRouteTableResult = new AssociateTransitGatewayRouteTableResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return associateTransitGatewayRouteTableResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("association", targetDepth)) { associateTransitGatewayRouteTableResult.setAssociation(TransitGatewayAssociationStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return associateTransitGatewayRouteTableResult; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAssociation() == null) ? 0 : getAssociation().hashCode()); return hashCode; }
/** * <p> * The ID of the association. * </p> * * @param association * The ID of the association. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateTransitGatewayRouteTableResult withAssociation(TransitGatewayAssociation association) { setAssociation(association); 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 (getAssociation() != null) sb.append("Association: ").append(getAssociation()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AssociateTransitGatewayRouteTableResult == false) return false; AssociateTransitGatewayRouteTableResult other = (AssociateTransitGatewayRouteTableResult) obj; if (other.getAssociation() == null ^ this.getAssociation() == null) return false; if (other.getAssociation() != null && other.getAssociation().equals(this.getAssociation()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAssociation() == null) ? 0 : getAssociation().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 (getAssociation() != null) sb.append("Association: ").append(getAssociation()); sb.append("}"); return sb.toString(); }