@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTransitGatewayId() == null) ? 0 : getTransitGatewayId().hashCode()); hashCode = prime * hashCode + ((getTransitGatewayArn() == null) ? 0 : getTransitGatewayArn().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().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 TransitGateway unmarshall(StaxUnmarshallerContext context) throws Exception { TransitGateway transitGateway = new TransitGateway(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; transitGateway.setTransitGatewayId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGateway.setTransitGatewayArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGateway.setState(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGateway.setOwnerId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGateway.setDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGateway.setCreationTime(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; transitGateway.setOptions(TransitGatewayOptionsStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGateway.withTags(new ArrayList<Tag>()); continue; transitGateway.withTags(TagStaxUnmarshaller.getInstance().unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteTransitGatewayResult == false) return false; DeleteTransitGatewayResult other = (DeleteTransitGatewayResult) obj; if (other.getTransitGateway() == null ^ this.getTransitGateway() == null) return false; if (other.getTransitGateway() != null && other.getTransitGateway().equals(this.getTransitGateway()) == false) return false; return true; }
public TransitGateway unmarshall(StaxUnmarshallerContext context) throws Exception { TransitGateway transitGateway = new TransitGateway(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; transitGateway.setTransitGatewayId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGateway.setTransitGatewayArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGateway.setState(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGateway.setOwnerId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGateway.setDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGateway.setCreationTime(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; transitGateway.setOptions(TransitGatewayOptionsStaxUnmarshaller.getInstance().unmarshall(context)); continue; transitGateway.withTags(new ArrayList<Tag>()); continue; transitGateway.withTags(TagStaxUnmarshaller.getInstance().unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateTransitGatewayResult == false) return false; CreateTransitGatewayResult other = (CreateTransitGatewayResult) obj; if (other.getTransitGateway() == null ^ this.getTransitGateway() == null) return false; if (other.getTransitGateway() != null && other.getTransitGateway().equals(this.getTransitGateway()) == false) return false; return true; }
return false; TransitGateway other = (TransitGateway) obj; if (other.getTransitGatewayId() == null ^ this.getTransitGatewayId() == null) return false; if (other.getTransitGatewayId() != null && other.getTransitGatewayId().equals(this.getTransitGatewayId()) == false) return false; if (other.getTransitGatewayArn() == null ^ this.getTransitGatewayArn() == null) return false; if (other.getTransitGatewayArn() != null && other.getTransitGatewayArn().equals(this.getTransitGatewayArn()) == 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.getOwnerId() == null ^ this.getOwnerId() == null) return false; if (other.getOwnerId() != null && other.getOwnerId().equals(this.getOwnerId()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getOptions() == null ^ this.getOptions() == null) return false; if (other.getOptions() != null && other.getOptions().equals(this.getOptions()) == false)
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteTransitGatewayResult == false) return false; DeleteTransitGatewayResult other = (DeleteTransitGatewayResult) obj; if (other.getTransitGateway() == null ^ this.getTransitGateway() == null) return false; if (other.getTransitGateway() != null && other.getTransitGateway().equals(this.getTransitGateway()) == false) return false; return true; }
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTransitGatewayId() != null) sb.append("TransitGatewayId: ").append(getTransitGatewayId()).append(","); if (getTransitGatewayArn() != null) sb.append("TransitGatewayArn: ").append(getTransitGatewayArn()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getOwnerId() != null) sb.append("OwnerId: ").append(getOwnerId()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).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 CreateTransitGatewayResult == false) return false; CreateTransitGatewayResult other = (CreateTransitGatewayResult) obj; if (other.getTransitGateway() == null ^ this.getTransitGateway() == null) return false; if (other.getTransitGateway() != null && other.getTransitGateway().equals(this.getTransitGateway()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTransitGatewayId() == null) ? 0 : getTransitGatewayId().hashCode()); hashCode = prime * hashCode + ((getTransitGatewayArn() == null) ? 0 : getTransitGatewayArn().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().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; TransitGateway other = (TransitGateway) obj; if (other.getTransitGatewayId() == null ^ this.getTransitGatewayId() == null) return false; if (other.getTransitGatewayId() != null && other.getTransitGatewayId().equals(this.getTransitGatewayId()) == false) return false; if (other.getTransitGatewayArn() == null ^ this.getTransitGatewayArn() == null) return false; if (other.getTransitGatewayArn() != null && other.getTransitGatewayArn().equals(this.getTransitGatewayArn()) == 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.getOwnerId() == null ^ this.getOwnerId() == null) return false; if (other.getOwnerId() != null && other.getOwnerId().equals(this.getOwnerId()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getOptions() == null ^ this.getOptions() == null) return false; if (other.getOptions() != null && other.getOptions().equals(this.getOptions()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTransitGatewayId() != null) sb.append("TransitGatewayId: ").append(getTransitGatewayId()).append(","); if (getTransitGatewayArn() != null) sb.append("TransitGatewayArn: ").append(getTransitGatewayArn()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getOwnerId() != null) sb.append("OwnerId: ").append(getOwnerId()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).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();