StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTransitGatewayAttachmentId() != null) sb.append("TransitGatewayAttachmentId: ").append(getTransitGatewayAttachmentId()).append(","); if (getTransitGatewayId() != null) sb.append("TransitGatewayId: ").append(getTransitGatewayId()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTransitGatewayAttachmentId() == null) ? 0 : getTransitGatewayAttachmentId().hashCode()); hashCode = prime * hashCode + ((getTransitGatewayId() == null) ? 0 : getTransitGatewayId().hashCode()); hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode()); hashCode = prime * hashCode + ((getVpcOwnerId() == null) ? 0 : getVpcOwnerId().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getSubnetIds() == null) ? 0 : getSubnetIds().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getOptions() == null) ? 0 : getOptions().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; }
return false; TransitGatewayVpcAttachment other = (TransitGatewayVpcAttachment) obj; if (other.getTransitGatewayAttachmentId() == null ^ this.getTransitGatewayAttachmentId() == null) return false; if (other.getTransitGatewayAttachmentId() != null && other.getTransitGatewayAttachmentId().equals(this.getTransitGatewayAttachmentId()) == false) return false; if (other.getTransitGatewayId() == null ^ this.getTransitGatewayId() == null)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTransitGatewayAttachmentId() != null) sb.append("TransitGatewayAttachmentId: ").append(getTransitGatewayAttachmentId()).append(","); if (getTransitGatewayId() != null) sb.append("TransitGatewayId: ").append(getTransitGatewayId()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTransitGatewayAttachmentId() == null) ? 0 : getTransitGatewayAttachmentId().hashCode()); hashCode = prime * hashCode + ((getTransitGatewayId() == null) ? 0 : getTransitGatewayId().hashCode()); hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode()); hashCode = prime * hashCode + ((getVpcOwnerId() == null) ? 0 : getVpcOwnerId().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getSubnetIds() == null) ? 0 : getSubnetIds().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getOptions() == null) ? 0 : getOptions().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; }
return false; TransitGatewayVpcAttachment other = (TransitGatewayVpcAttachment) obj; if (other.getTransitGatewayAttachmentId() == null ^ this.getTransitGatewayAttachmentId() == null) return false; if (other.getTransitGatewayAttachmentId() != null && other.getTransitGatewayAttachmentId().equals(this.getTransitGatewayAttachmentId()) == false) return false; if (other.getTransitGatewayId() == null ^ this.getTransitGatewayId() == null)