@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteRouteTableRequest == false) return false; DeleteRouteTableRequest other = (DeleteRouteTableRequest) obj; if (other.getRouteTableId() == null ^ this.getRouteTableId() == null) return false; if (other.getRouteTableId() != null && other.getRouteTableId().equals(this.getRouteTableId()) == false) return false; return true; }
public Request<DeleteRouteTableRequest> marshall( DeleteRouteTableRequest deleteRouteTableRequest) { if (deleteRouteTableRequest == null) { throw new AmazonClientException("Invalid argument passed to marshall(...)"); } Request<DeleteRouteTableRequest> request = new DefaultRequest<DeleteRouteTableRequest>(deleteRouteTableRequest, "AmazonEC2"); request.addParameter("Action", "DeleteRouteTable"); request.addParameter("Version", "2015-10-01"); if (deleteRouteTableRequest.getRouteTableId() != null) { request.addParameter( "RouteTableId", StringUtils.fromString(deleteRouteTableRequest.getRouteTableId())); } return request; }