@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; }
public TransitGatewayVpcAttachment unmarshall(StaxUnmarshallerContext context) throws Exception { TransitGatewayVpcAttachment transitGatewayVpcAttachment = new TransitGatewayVpcAttachment(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; transitGatewayVpcAttachment.setTransitGatewayAttachmentId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayVpcAttachment.setTransitGatewayId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayVpcAttachment.setVpcId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayVpcAttachment.setVpcOwnerId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayVpcAttachment.setState(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayVpcAttachment.withSubnetIds(new ArrayList<String>()); continue; transitGatewayVpcAttachment.withSubnetIds(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayVpcAttachment.setCreationTime(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; transitGatewayVpcAttachment.setOptions(TransitGatewayVpcAttachmentOptionsStaxUnmarshaller.getInstance().unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateTransitGatewayVpcAttachmentResult == false) return false; CreateTransitGatewayVpcAttachmentResult other = (CreateTransitGatewayVpcAttachmentResult) obj; if (other.getTransitGatewayVpcAttachment() == null ^ this.getTransitGatewayVpcAttachment() == null) return false; if (other.getTransitGatewayVpcAttachment() != null && other.getTransitGatewayVpcAttachment().equals(this.getTransitGatewayVpcAttachment()) == false) return false; return true; }
public TransitGatewayVpcAttachment unmarshall(StaxUnmarshallerContext context) throws Exception { TransitGatewayVpcAttachment transitGatewayVpcAttachment = new TransitGatewayVpcAttachment(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; transitGatewayVpcAttachment.setTransitGatewayAttachmentId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayVpcAttachment.setTransitGatewayId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayVpcAttachment.setVpcId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayVpcAttachment.setVpcOwnerId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayVpcAttachment.setState(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayVpcAttachment.withSubnetIds(new ArrayList<String>()); continue; transitGatewayVpcAttachment.withSubnetIds(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGatewayVpcAttachment.setCreationTime(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; transitGatewayVpcAttachment.setOptions(TransitGatewayVpcAttachmentOptionsStaxUnmarshaller.getInstance().unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AcceptTransitGatewayVpcAttachmentResult == false) return false; AcceptTransitGatewayVpcAttachmentResult other = (AcceptTransitGatewayVpcAttachmentResult) obj; if (other.getTransitGatewayVpcAttachment() == null ^ this.getTransitGatewayVpcAttachment() == null) return false; if (other.getTransitGatewayVpcAttachment() != null && other.getTransitGatewayVpcAttachment().equals(this.getTransitGatewayVpcAttachment()) == false) return false; return true; }
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) return false; if (other.getTransitGatewayId() != null && other.getTransitGatewayId().equals(this.getTransitGatewayId()) == false) return false; if (other.getVpcId() == null ^ this.getVpcId() == null) return false; if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == false) return false; if (other.getVpcOwnerId() == null ^ this.getVpcOwnerId() == null) return false; if (other.getVpcOwnerId() != null && other.getVpcOwnerId().equals(this.getVpcOwnerId()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getSubnetIds() == null ^ this.getSubnetIds() == null) return false; if (other.getSubnetIds() != null && other.getSubnetIds().equals(this.getSubnetIds()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false)
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RejectTransitGatewayVpcAttachmentResult == false) return false; RejectTransitGatewayVpcAttachmentResult other = (RejectTransitGatewayVpcAttachmentResult) obj; if (other.getTransitGatewayVpcAttachment() == null ^ this.getTransitGatewayVpcAttachment() == null) return false; if (other.getTransitGatewayVpcAttachment() != null && other.getTransitGatewayVpcAttachment().equals(this.getTransitGatewayVpcAttachment()) == false) return false; return true; }
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTransitGatewayAttachmentId() != null) sb.append("TransitGatewayAttachmentId: ").append(getTransitGatewayAttachmentId()).append(","); if (getTransitGatewayId() != null) sb.append("TransitGatewayId: ").append(getTransitGatewayId()).append(","); if (getVpcId() != null) sb.append("VpcId: ").append(getVpcId()).append(","); if (getVpcOwnerId() != null) sb.append("VpcOwnerId: ").append(getVpcOwnerId()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getSubnetIds() != null) sb.append("SubnetIds: ").append(getSubnetIds()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getOptions() != null) sb.append("Options: ").append(getOptions()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString();
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModifyTransitGatewayVpcAttachmentResult == false) return false; ModifyTransitGatewayVpcAttachmentResult other = (ModifyTransitGatewayVpcAttachmentResult) obj; if (other.getTransitGatewayVpcAttachment() == null ^ this.getTransitGatewayVpcAttachment() == null) return false; if (other.getTransitGatewayVpcAttachment() != null && other.getTransitGatewayVpcAttachment().equals(this.getTransitGatewayVpcAttachment()) == false) return false; return true; }
@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; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteTransitGatewayVpcAttachmentResult == false) return false; DeleteTransitGatewayVpcAttachmentResult other = (DeleteTransitGatewayVpcAttachmentResult) obj; if (other.getTransitGatewayVpcAttachment() == null ^ this.getTransitGatewayVpcAttachment() == null) return false; if (other.getTransitGatewayVpcAttachment() != null && other.getTransitGatewayVpcAttachment().equals(this.getTransitGatewayVpcAttachment()) == false) return false; return true; }
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) return false; if (other.getTransitGatewayId() != null && other.getTransitGatewayId().equals(this.getTransitGatewayId()) == false) return false; if (other.getVpcId() == null ^ this.getVpcId() == null) return false; if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == false) return false; if (other.getVpcOwnerId() == null ^ this.getVpcOwnerId() == null) return false; if (other.getVpcOwnerId() != null && other.getVpcOwnerId().equals(this.getVpcOwnerId()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getSubnetIds() == null ^ this.getSubnetIds() == null) return false; if (other.getSubnetIds() != null && other.getSubnetIds().equals(this.getSubnetIds()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false)
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModifyTransitGatewayVpcAttachmentResult == false) return false; ModifyTransitGatewayVpcAttachmentResult other = (ModifyTransitGatewayVpcAttachmentResult) obj; if (other.getTransitGatewayVpcAttachment() == null ^ this.getTransitGatewayVpcAttachment() == null) return false; if (other.getTransitGatewayVpcAttachment() != null && other.getTransitGatewayVpcAttachment().equals(this.getTransitGatewayVpcAttachment()) == false) return false; return true; }
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTransitGatewayAttachmentId() != null) sb.append("TransitGatewayAttachmentId: ").append(getTransitGatewayAttachmentId()).append(","); if (getTransitGatewayId() != null) sb.append("TransitGatewayId: ").append(getTransitGatewayId()).append(","); if (getVpcId() != null) sb.append("VpcId: ").append(getVpcId()).append(","); if (getVpcOwnerId() != null) sb.append("VpcOwnerId: ").append(getVpcOwnerId()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getSubnetIds() != null) sb.append("SubnetIds: ").append(getSubnetIds()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getOptions() != null) sb.append("Options: ").append(getOptions()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString();
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateTransitGatewayVpcAttachmentResult == false) return false; CreateTransitGatewayVpcAttachmentResult other = (CreateTransitGatewayVpcAttachmentResult) obj; if (other.getTransitGatewayVpcAttachment() == null ^ this.getTransitGatewayVpcAttachment() == null) return false; if (other.getTransitGatewayVpcAttachment() != null && other.getTransitGatewayVpcAttachment().equals(this.getTransitGatewayVpcAttachment()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteTransitGatewayVpcAttachmentResult == false) return false; DeleteTransitGatewayVpcAttachmentResult other = (DeleteTransitGatewayVpcAttachmentResult) obj; if (other.getTransitGatewayVpcAttachment() == null ^ this.getTransitGatewayVpcAttachment() == null) return false; if (other.getTransitGatewayVpcAttachment() != null && other.getTransitGatewayVpcAttachment().equals(this.getTransitGatewayVpcAttachment()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AcceptTransitGatewayVpcAttachmentResult == false) return false; AcceptTransitGatewayVpcAttachmentResult other = (AcceptTransitGatewayVpcAttachmentResult) obj; if (other.getTransitGatewayVpcAttachment() == null ^ this.getTransitGatewayVpcAttachment() == null) return false; if (other.getTransitGatewayVpcAttachment() != null && other.getTransitGatewayVpcAttachment().equals(this.getTransitGatewayVpcAttachment()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RejectTransitGatewayVpcAttachmentResult == false) return false; RejectTransitGatewayVpcAttachmentResult other = (RejectTransitGatewayVpcAttachmentResult) obj; if (other.getTransitGatewayVpcAttachment() == null ^ this.getTransitGatewayVpcAttachment() == null) return false; if (other.getTransitGatewayVpcAttachment() != null && other.getTransitGatewayVpcAttachment().equals(this.getTransitGatewayVpcAttachment()) == false) return false; return true; }