@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTransitGatewayRouteTableId() == null) ? 0 : getTransitGatewayRouteTableId().hashCode()); hashCode = prime * hashCode + ((getTransitGatewayAttachmentId() == null) ? 0 : getTransitGatewayAttachmentId().hashCode()); hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); return hashCode; }
@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 resource. * </p> * * @param resourceId * The ID of the resource. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayAssociation withResourceId(String resourceId) { setResourceId(resourceId); return this; }
public TransitGatewayAssociation unmarshall(StaxUnmarshallerContext context) throws Exception { TransitGatewayAssociation transitGatewayAssociation = new TransitGatewayAssociation(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; transitGatewayAssociation.setTransitGatewayRouteTableId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayAssociation.setTransitGatewayAttachmentId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayAssociation.setResourceId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayAssociation.setResourceType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayAssociation.setState(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DisassociateTransitGatewayRouteTableResult == false) return false; DisassociateTransitGatewayRouteTableResult other = (DisassociateTransitGatewayRouteTableResult) 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 resource type. * </p> * * @param resourceType * The resource type. * @return Returns a reference to this object so that method calls can be chained together. * @see TransitGatewayAttachmentResourceType */ public TransitGatewayAssociation withResourceType(String resourceType) { setResourceType(resourceType); return this; }
public TransitGatewayAssociation unmarshall(StaxUnmarshallerContext context) throws Exception { TransitGatewayAssociation transitGatewayAssociation = new TransitGatewayAssociation(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; transitGatewayAssociation.setTransitGatewayRouteTableId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayAssociation.setTransitGatewayAttachmentId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayAssociation.setResourceId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayAssociation.setResourceType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayAssociation.setState(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@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 resource type. * </p> * * @param resourceType * The resource type. * @return Returns a reference to this object so that method calls can be chained together. * @see TransitGatewayAttachmentResourceType */ public TransitGatewayAssociation withResourceType(String resourceType) { setResourceType(resourceType); return this; }
return false; TransitGatewayAssociation other = (TransitGatewayAssociation) obj; if (other.getTransitGatewayRouteTableId() == null ^ this.getTransitGatewayRouteTableId() == null) return false; if (other.getTransitGatewayRouteTableId() != null && other.getTransitGatewayRouteTableId().equals(this.getTransitGatewayRouteTableId()) == false) return false; if (other.getTransitGatewayAttachmentId() == null ^ this.getTransitGatewayAttachmentId() == null) return false; if (other.getTransitGatewayAttachmentId() != null && other.getTransitGatewayAttachmentId().equals(this.getTransitGatewayAttachmentId()) == false) return false; if (other.getResourceId() == null ^ this.getResourceId() == null) return false; if (other.getResourceId() != null && other.getResourceId().equals(this.getResourceId()) == false) return false; if (other.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == 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; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DisassociateTransitGatewayRouteTableResult == false) return false; DisassociateTransitGatewayRouteTableResult other = (DisassociateTransitGatewayRouteTableResult) 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 resource. * </p> * * @param resourceId * The ID of the resource. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayAssociation withResourceId(String resourceId) { setResourceId(resourceId); 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 (getTransitGatewayRouteTableId() != null) sb.append("TransitGatewayRouteTableId: ").append(getTransitGatewayRouteTableId()).append(","); if (getTransitGatewayAttachmentId() != null) sb.append("TransitGatewayAttachmentId: ").append(getTransitGatewayAttachmentId()).append(","); if (getResourceId() != null) sb.append("ResourceId: ").append(getResourceId()).append(","); if (getResourceType() != null) sb.append("ResourceType: ").append(getResourceType()).append(","); if (getState() != null) sb.append("State: ").append(getState()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAssociation() == null) ? 0 : getAssociation().hashCode()); return hashCode; }
@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 + ((getTransitGatewayRouteTableId() == null) ? 0 : getTransitGatewayRouteTableId().hashCode()); hashCode = prime * hashCode + ((getTransitGatewayAttachmentId() == null) ? 0 : getTransitGatewayAttachmentId().hashCode()); hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAssociation() == null) ? 0 : getAssociation().hashCode()); return hashCode; }
return false; TransitGatewayAssociation other = (TransitGatewayAssociation) obj; if (other.getTransitGatewayRouteTableId() == null ^ this.getTransitGatewayRouteTableId() == null) return false; if (other.getTransitGatewayRouteTableId() != null && other.getTransitGatewayRouteTableId().equals(this.getTransitGatewayRouteTableId()) == false) return false; if (other.getTransitGatewayAttachmentId() == null ^ this.getTransitGatewayAttachmentId() == null) return false; if (other.getTransitGatewayAttachmentId() != null && other.getTransitGatewayAttachmentId().equals(this.getTransitGatewayAttachmentId()) == false) return false; if (other.getResourceId() == null ^ this.getResourceId() == null) return false; if (other.getResourceId() != null && other.getResourceId().equals(this.getResourceId()) == false) return false; if (other.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; return true;
/** * 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 (getTransitGatewayRouteTableId() != null) sb.append("TransitGatewayRouteTableId: ").append(getTransitGatewayRouteTableId()).append(","); if (getTransitGatewayAttachmentId() != null) sb.append("TransitGatewayAttachmentId: ").append(getTransitGatewayAttachmentId()).append(","); if (getResourceId() != null) sb.append("ResourceId: ").append(getResourceId()).append(","); if (getResourceType() != null) sb.append("ResourceType: ").append(getResourceType()).append(","); if (getState() != null) sb.append("State: ").append(getState()); sb.append("}"); return sb.toString(); }